• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Bear Bibeault
  • Liutauras Vilda
  • Devaka Cooray
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

How to access EJB from Different Machine

 
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.
 
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.
 
That's a very big dog. I think I want to go home now and hug this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!