aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: GlassFish Application Client Container in Standalone Java SE
 
Similar Threads
WSAD and JDK 1.4
Connection to remote Glassfish server
Problem while creating Struts application
MTOM example
How to develop a standalone swing application with ejb 3.1