This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 10441
    
176

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Client Code to Look Up a Bean in EJB 3
 
It's not a secret anymore!