Re: [RMI] Questions about RMI and Tomcat/Apache
Niclas Hedhman <[email protected]> Tue, 19 Dec 2006 12:10:01 +0800
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 19 December 2006 11:17, Vanfleet, David wrote: > Hi, I'm very new to RMI and I'm trying to figure out how to get the RMI > server to run with an existing Tomcat or Apache web server. My server > has both Tomcat and Apache running for other uses and I would like to > get RMI running with one of these without it interfering with the > existing functionality. Is this possible? The other part of this > question is if I can do this with either Tomcat or Apache which one > would be best/easiest? If someone could direct me to some instructions > on how to do this I would greatly appreciate it. I think the question is somewhat strangely asked. Technically speaking there is no "RMI Server". That is typically something you create. Secondly, Apache Webserver is a native application and unless mod_java is installed, does not run Java applications. Tomcat is among other things a servlet container, so you can stick your RMI stuff into a servlet and deploy it via a WAR, if the WebApp has enough permissions to do network operations and much more. The RMI Registry can be run inside the same servlet by checking and creating it thru the LocateRegistry class. Cheers Niclas =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html