JAVA RMI thr HTTP throws NoRouteToHostException

M

manjunath.102

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.
 
J

Jan Peter Stotz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Java RMI questions and MyEclipse 8
RMI in java 15
RMI & connection refused 10
Java RMI - registry questions 3
Routing problem with RMI Registry 5
About Java RMI 1
RMI Security Manager 5
RMI connection refused 14

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top