Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client Code to Look Up a Bean in EJB 3

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic