• 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

EJB3 client application container

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One of the cool features of EJB3 is dependency injection, which avoids a lot of boiler plate code. One query that I have is Once I deploy the EJB to my weblogic server and want to access the EJB from a command line client, which has DI, how should I run the client?

I am sure the simple 'Java' command won't work. I have read somewhere that a special program/client is bundled with Weblogic for this. Please help me out if you know the solution.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can either use an application client container, which is offered by every JEE app server. Then you can use DI for calling EJBs from the client.
--> larger client (file size) + more complex configuration to start the client (only once)

Or you can use JNDI to call EJBs from the client.
--> more complex code for calling EJBs (JNDI instead of DI annotations), but less size and easier configuration (simply use the main()-method and the java command to start the client)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic