This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI server in servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI server in servlet" Watch "RMI server in servlet" New topic
Author

RMI server in servlet

Ariffin Ahmad
Ranch Hand

Joined: Aug 16, 2001
Posts: 84
can i write a servlet which is a RMI server, and then run it in tomcat?. if i can, how about the rebind method?... do i still have to run the rmiregistry or i do tomcat have some service that equivalent to rmiregistry?..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
It would be a cleaner design to separate your RMI server from your servlet and run it as a separate process. There is no problem with having a servlet connect to a RMI function. There is no substitute that I know of for running the rmiregistry.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI server in servlet
 
Similar Threads
Q: RMI- send objects, multiple servers
Servlet as an rmi client
RmiRegistry
how to run rmi?
Running as one process