This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing EJB

 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After having built an EJB 2 Session bean what does the client need to access the bean deployed on the server. Does he need some jar files to access the stub ?
 
Kalyan Anand
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On the client side we call PortableRemoteObject.narrow (o, MyEJBHome.class); so the MyEJBHome must be available on the client side. My question is what all must be given to the client so that he can set these in the class path ?

Anyone ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The client will need access to the bean interfaces(remote/local interface and home/localhome interface). No need of the actual implementation class. If remote classloading is enabled then the client will not even require the interfaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic