Skip to content

ievgen-kapinos/A004-EE-ACC-Glassfish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Java EE - Application Client Container example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages