aspose file tools*
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 Spring in Action this week in the Spring 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: 10202
    
166

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client Code to Look Up a Bean in EJB 3