aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Accessing session bean in a distributed environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Accessing session bean in a distributed environment" Watch "Accessing session bean in a distributed environment" New topic
Author

Accessing session bean in a distributed environment

priyanka kumari
Greenhorn

Joined: Jul 29, 2007
Posts: 5
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

Joined: Jul 20, 2005
Posts: 10052
    
163

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.


[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing session bean in a distributed environment