This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes EJB3 client application container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "EJB3 client application container" Watch "EJB3 client application container" New topic
Author

EJB3 client application container

narain ashwin
Ranch Hand

Joined: Dec 27, 2007
Posts: 48
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.


I drink two cappuccinos a day.Is that of any help to solve java problems??
JBoss 6 - Admin console Username/pwd: admin/admin
Kai Wähner
Ranch Hand

Joined: Sep 16, 2009
Posts: 76
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)


My IT-blog about my experiences with: Java / JEE, IT Conferences and IT Certifications

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB3 client application container
 
Similar Threads
What servers support ejb 3?
Learning EJB3
Accessing Local interface using ejb3 and weblogic
Problem Deploying Session Bean
EJB3: Build, Packaging and Deploying: Industry Standards