Re: [Fwd: Re: [RMI] Questions about RMI and Tomcat/Apache]

Tom Cellucci <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
David,

you may be interested to take a look at the Bantam project (
bantam.dev.java.net).  Bantam remote services deploy as WAR files, and
client/service communication happens entirely over the HTTP port.

You can try it out using our live demo site (
http://bantam.skillcorp.com/bantam-examples/)  and the sample client that's
part of the project download.

HTH,

-Tom


> From: "Vanfleet, David" <[email protected]>
> To: [email protected]
> Date: Mon, 18 Dec 2006 21:49:55 -0800
> Subject: Re: [RMI] Questions about RMI and Tomcat/Apache
> 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
>
>
> --------------------------------------------------------------------------
> Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
> Community Web Site:  http://jini.org
> jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
> Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
>
>
>

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.