• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

GlassFish Application Client Container in Standalone Java SE

 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
I'm full of tinier men! And a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic