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