Performing a JNDI Lookup of JMS Resources Deployed on the Administration Server

For a Java client to perform a JNDI lookup of JMS resources deployed on the administration server, an SSH tunnel must be established between the client and the administration server that has a public IP address.

To perform a JNDI lookup of JMS resources:

Note:

An SSH tunnel cannot be established between a client and a host that does not have a public IP address. This prevents a Java client from performing a JNDI lookup of JMS resources deployed on the servers.
  1. Create an SSH tunnel to the administration server:
    ssh -v -i opc_rsa -L 7001:AdminHostIP:7001 opc@AdminHostIP -N
    

    where AdminHostIP is the IP address on the administration server.

  2. Create an SSH tunnel to the managed server.
    ssh -v -i opc_rsa -L 8001:MS1IP:8001 opc@MS1HOSTNAME -N
    

    where MS1IP is the IP address on the managed server and MS1HOSTNAME is the hostname of the managed server.

See Creating an SSH Tunnel to a Port in the Virtual Machine.