Re: [RMI] Questions about RMI and Tomcat/Apache
"Vanfleet, David" <[email protected]> Mon, 18 Dec 2006 21:49:55 -0800
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <352366D52DA72B4295106E3C65E1719103A40A9B@USCYMPLM004.net.plm.eds.com> |
Thanks for your quick response, I'm quite sure that I'm not completely
grasping all of this, I'm not even sure what questions to ask.
What I need is to be able to send and receive Java objects from the
client (application and applet) to the server. If possible my RMI server
needs to be setup so this data is passed by way of the HTTP protocol on
port 80. I need this because of the way the server is setup on the
network (the server is in the internal network and traffic is routed to
it, through the firewall, by way of a HTTP reverse proxy from a separate
system in the DMZ).
It sounds like what you're saying below is that even if I create this
server from a servlet in tomcat I'm still not accessing that server
through Tomcat, is that correct?
Is something like the following even possible within the client where it
references a webserver directly?
MyServer obj =
(SomeObject)Naming.lookup("http://myhost.com/MyServer");
I may be confused here, I was reading about the java.rmi.server.codebase
system property which can be set to a http address. I'm thinking now
that this is more like the classpath then the location of the RMI
server. Correct?
Thanks again for your comments,
David
-----Original Message-----
From: Niclas Hedhman [mailto:[email protected]] On Behalf Of Niclas
Hedhman
Sent: Monday, December 18, 2006 9:10 PM
To: Vanfleet, David
Cc: [email protected]
Subject: Re: [RMI] Questions about RMI and Tomcat/Apache
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