Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 2.14 KB

README.md

File metadata and controls

39 lines (33 loc) · 2.14 KB

Java EE - Application Client Container example

Environment:

  • GlassFish Server 4.1.1
  • JRE 7u21 or below (suspected problem with self-signed jnlp. See defect. Download)

Setup

  1. Build ear with Maven (compiler is set to Java 1.7 version)
  2. Deployear into you GlassFish Server

Run client using appclient script (option 1)

  1. Download Client stubs from GlassFish admin page. It should be zip file with:
  • A004-EE-AAC-Glassfish-earClient.jar file
  • A004-EE-AAC-Glassfish-earClient folder.
  1. Unzip it
  2. Open console
  3. Go to Glassfish bin directory cd <path to glassfish>\glassfish4\glassfish\bin
  4. Run appclient -client <path to your Client Stubs>\A004-EE-AAC-Glassfish-earClient.jar
  5. You should see message TestBean - doSomething - result

Run client using Java Web Start link (option 2)

  1. Download jnlp file. https://localhost:8181/A004-EE-AAC-Glassfish-app-client
  2. Open console.
  3. Go to JRE 7u21 folder (e.g. C:\Program Files\Java\jdk1.7.0_21\jre\bin)
  4. Run Java Control Panel with javacpl.exe
  • Set Advanced - Java Console - Show Console
  1. javaws.exe <path to your jnlp>\A004-EE-AAC-Glassfish-app-client.jnlp
  2. You should see message TestBean - doSomething - result in separate window with console messages.

Useful links