• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing session bean in a distributed environment

 
priyanka kumari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I want to access a session bean distributed environment i.e. I have a EJB Component say Session bean deployed on one machine , a Web client say Servlet deployed on another machine which is using the deployed Session bean from first machine and running the Servlet from the third machine.
Is it possible ?
I am using Glassfish as the application server and Netbeans 6.1 as the IDE.

Thanks,
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes this is possible. On Machine A you can deploy the beans. On Machine B deploy the servlet and the servlet will do a JNDI lookup, passing the jndi properties to point to the bean on Machine A. Then on Machine C you can open a browser and access the servlet deployed on Machine B. All you have to do is install Glassfish on A and B and deploy the servlet and EJB.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic