Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GlassFish Application Client Container in Standalone Java SE  RSS feed

Ivan Krizsan
Ranch Hand
Posts: 2198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!