GeeCON Prague 2014*
The moose likes Other Java Products and Servers and the fly likes GlassFish Application Client Container in Standalone Java SE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "GlassFish Application Client Container in Standalone Java SE" Watch "GlassFish Application Client Container in Standalone Java SE" New topic
Author

GlassFish Application Client Container in Standalone Java SE

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
I want to write a Java SE program that runs outside of any container, i.e. GlassFish v3, but nevertheless has a reference to an EJB remote business interface injected into an annotated instance variable or setter method. I found the GlassFish v3 Application Client Container and thought my day was made. Boy was I wrong.
I have tried the code below and a number of variations on the theme, but with no luck.

Yes, I do include the gf-client.jar on the classpath of the above program.
...and yes, I have tried to start the app client container with a single class as well, but found that there is a bug preventing dependency injection in that case.
Is there, by any chance, anyone that has managed to succeed with a similar scenario?
Thanks in advance!


My free books and tutorials: http://www.slideshare.net/krizsan
 
GeeCON Prague 2014
 
subject: GlassFish Application Client Container in Standalone Java SE