This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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!