Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access EJB from Different Machine

 
Seetharamireddy Mittala
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I am new to EJB Technology,Here my question is related to Accessing EJB From another machile.

1) I have created Session Bean in WSAD 5.1 ,
2) I can access methods of that Bean in that machin
3) Here client program is Servlet ,
$) Servlet and EJB both are reside in same workspace.

Now My requirement is I want to access same bean for Different machine

Could you suggest me , What steps I have to follow to achive this.

Thanks in Advance.
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to change your lookup code accordingly. Now the EJB component and the client resides in a single VM. When you change the client to a remote JVM (in a remote machine )you need to give the IP of the the server machine in the lookup code instead of the localhost. Normally that would be the only change you need to make.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic