JAVA RMI thr HTTP throws NoRouteToHostException  
Author Message
manjunath.102





PostPosted: 2005-6-8 21:30:00 Top

java-programmer, JAVA RMI thr HTTP throws NoRouteToHostException Hi,

I am developing an application that would be used in a firewall
environment. As part of my test environment, I have blocked port 1099
and have allowed port 80 access on the server. So all the RMI calls
from the client should be tunnelled thru port 80 in the server.

I have ported the java-rmi.cgi script (unix version) to windows
version. So I am confident that my RMI client, java-rmi.cgi are
correct. But I am getting NoRouteToHost Exception and my application
has to exit.

My understanding is that when the RMI client tries to connect 1099 (rmi
port) and if it fails, it will try to connect to port 80 and later all
the rmi calls should be embedded within http commands. Does my
web-server (apache) needs to be configured for this?

I have also tried setting http.proxtHost, but of no avail.

Please let me know of your solutions.

>> Manjunath

 
Jan Peter Stotz





PostPosted: 2005-6-9 2:00:00 Top

java-programmer >> JAVA RMI thr HTTP throws NoRouteToHostException email***@***.com schrieb:

> I am developing an application that would be used in a firewall
> environment. As part of my test environment, I have blocked port 1099
> and have allowed port 80 access on the server. So all the RMI calls
> from the client should be tunnelled thru port 80 in the server.

> I have ported the java-rmi.cgi script (unix version) to windows
> version. So I am confident that my RMI client, java-rmi.cgi are
> correct. But I am getting NoRouteToHost Exception and my application
> has to exit.

Maybe you should try the more efficient RMIServletHandler:
http://java.sun.com/j2se/1.3/docs/guide/rmi/archives/rmiservlethandler.zip

It includes an example client that shows how to restrict the client on
using the HTTP tunneling mode.

Another interesting url:
http://www.cs.swan.ac.uk/~csneal/InternetComputing/Tunnelling.html

RMI-Faq von jGuru
http://www.jguru.com/faq/printablefaq.jsp?topic=RMI

Jan