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 EJB and other Java EE Technologies and the fly likes Client Code to Look Up a Bean in EJB 3 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 » Java » EJB and other Java EE Technologies
Bookmark "Client Code to Look Up a Bean in EJB 3" Watch "Client Code to Look Up a Bean in EJB 3" New topic
Author

Client Code to Look Up a Bean in EJB 3

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi
Please help.

This is my Remote Interface exposing Business Methods




This is my Session Bean class that is implementing the Remote Interface



Now how the client can access this


Will This should be

context.lookup("HelloWorldInterface") // Remote Interface Name
or
context.lookup("HelloWorldBean") // Bean class Name


Save India From Corruption - Anna Hazare.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9912
    
158

Each application server uses its own JNDI naming convention to bind the bean to the JNDI. You will have to consult the server documentation to know what the JNDI name will be.

[My Blog] [JavaRanch Journal]
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Client Code to Look Up a Bean in EJB 3
 
Similar Threads
Understanding EJB3 Example
Help EJB3
EJB 3.0 - NoInitialContextException
Look up EJB 3.0 Session Bean in Remote Client
Confusion over JBossWS