- GlassFish Server 4.1.1
- JRE 7u21 or below (suspected problem with self-signed jnlp. See defect. Download)
- Build
ear
withMaven
(compiler is set to Java 1.7 version) - Deploy
ear
into you GlassFish Server
- Download
Client stubs
from GlassFish admin page. It should be zip file with:
A004-EE-AAC-Glassfish-earClient.jar
fileA004-EE-AAC-Glassfish-earClient
folder.
- Unzip it
- Open console
- Go to Glassfish bin directory
cd <path to glassfish>\glassfish4\glassfish\bin
- Run
appclient -client <path to your Client Stubs>\A004-EE-AAC-Glassfish-earClient.jar
- You should see message
TestBean - doSomething - result
- Download
jnlp
file. https://localhost:8181/A004-EE-AAC-Glassfish-app-client - Open console.
- Go to JRE 7u21 folder (e.g.
C:\Program Files\Java\jdk1.7.0_21\jre\bin
) - Run
Java Control Panel
withjavacpl.exe
- Set
Advanced - Java Console - Show Console
javaws.exe <path to your jnlp>\A004-EE-AAC-Glassfish-app-client.jnlp
- You should see message
TestBean - doSomething - result
in separate window with console messages.
- http://stackoverflow.com/questions/25974302/portable-jndi-syntax-lookup-for-ejb-on-glassfish/25985288#25985288
- https://glassfish.java.net/docs/4.0/application-development-guide.pdf (Chapter 10. Developing Java Clients)
- https://www.java.com/en/download/help/javaconsole.xml
- http://java.com/en/download/help/jcp_security.xml
- https://blogs.oracle.com/quinn/entry/customizing_generated_java_web_start
- http://stackoverflow.com/questions/26307580/signed-java-web-start-application-with-glassfish-4-1-and-java7
- http://stackoverflow.com/questions/19481826/java-7u51-will-not-accept-jnlp-with-self-signed-certificate
- http://stackoverflow.com/questions/26039200/java-web-start-blocked-with-newest-java-version