FIREWALL issue while using RMI protocol in JDMK

K

konkimalla

Our project (JDMK 5.0) constitutes an agent that uses RMI Connector
Server and a client that uses RMI Protocol for communication with that
agent. When the agent runs on a machine that is behind the firewall,
Client is unable to connect to it.

After a detailed analysis, we found that whenever a RMI server
(agent) starts, java process opens up 2 ports in LISTEN mode. First one
is what we defined using the JDMK's RmiConnectorServer constructor and
the other one is a random port. This random port changes when ever the
java process re-bounces. After changing the policy in the firewall to
open the random port, the client connected to the agent. But, the
problem is when ever we restart the agent, as this random port changes
the client is unable to connect to the agent.

Can it be possible to specify the random port through any property
using JDMK/RMI?? I have found similar problem in the RMI forum and
everybody has suggested to use RMI code, can this code be compatible
with JDMK RMIConnectorServer?? I do not have any solution and I am
really stuck. I would really appreciate your help.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top