Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote Client To Session Bean  RSS feed

 
Richard Lawrence
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm new to EJB, can anybody answer the following:-
If I create a remote client(i.e. application)
do I have to import the classes related to the
Session Bean (i.e. Home, Remote and Session Bean);
have the classes on the client machine.
Using JNDI does the client need to know the location of the EJB or the identity of it's server.
Thanks in advance.
 
Ragu Sivaraman
Ranch Hand
Posts: 464
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need the stub of the bean to access or call it from your remote app
Use JNDI to look up the bean , then get the handle of the home, create an ejbobject and then use the bean
More on this , please refer javasoft.com
thanks
ragu
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!