File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes How to put an RMI server on a webserver 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 "How to put an RMI server on a webserver" Watch "How to put an RMI server on a webserver" New topic
Author

How to put an RMI server on a webserver

Raymund Beyer
Greenhorn

Joined: Jul 17, 2009
Posts: 12
Hello,

I'm new to RMI, I just went through a few tutorials.
Now I wonder, what is the best way to get my RMI server on a hosted webserver? I guess that I need an application server like Glassfish to do so on my webspace. Bur how do I start my server there? Are there recommendations which hosting provider supports RMI? Or would it be better to get a virtual server for this?

Questions over question. I would be glad, if anyone could push me to the right direction.

Thanks in advance

Ray
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2229
    
    7

Hello there and welcome to the Ranch.

The RMI server on web server depends on whether your web hosting company allow you to. RMI uses port 1099 and web server uses port 80. So technically it is possible to run both server simultaneously.

To put RMI server on the web server first you need to write one. Once you do you need to deploy it on the web server. Make sure the hosting company enable the port 1099 for you to run RMI.

Hope this helps.


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
Ashley Burton
Greenhorn

Joined: Jul 15, 2009
Posts: 5
Hello,

can you tell us why do you want to expose RMI service on public server?

You can use any free port(not only 1099, however it is the most common port for RMI) for this, but it is rather not common(as far as I know) to expose RMI services on the public server.

Best

Ash
Raymund Beyer
Greenhorn

Joined: Jul 17, 2009
Posts: 12
It's just for practice! What technique would you recommend to get a similar result (remote methods and passing objects)?

BTW: I guess the best solution for webhosting would be a virtual server, since there I have full control over the ports etc.

Best

Ray
Ashley Burton
Greenhorn

Joined: Jul 15, 2009
Posts: 5
Hi Ray,

you can try to create web service.
I haven't ever seen public RMI services what does not mean this sollution is bad or forbidden. You have to dig

Best

Grzegorz


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to put an RMI server on a webserver
 
Similar Threads
Servlet as an rmi client
Configuration of Weblogic Application Server with iplanet as webserver
deploying a servlet
how to load class dynamically from another location In RMI
invoke a jaxws function by passing the HttpServletRequest