Enabling the RMI Port for the OPE Server Container

Complete the following steps to enable the RMI port for the OPE Server Docker container.

Prerequisites

Execute the script $AF_HOME/docker/copy-required-files.sh.

Procedure

  1. Edit $AF_HOME/docker/fom-ope/4.0.0/ope/standalone/bin/start.sh and add the following variable JMX_RMI_ARGS.
    JMX_RMI_ARGS="-Dcom.sun.management.jmxremote
    		-Djava.rmi.server.hostname=<host-ip-address>
    		-Dcom.sun.management.jmxremote.port=<port-number>
    		-Dcom.sun.management.jmxremote.rmi.port=<port-number>
    		-Dcom.sun.management.jmxremote.local.only=false
    		-Dcom.sun.management.jmxremote.authenticate=false
    		-Dcom.sun.management.jmxremote.ssl=false"
    where <host-ip-address> is the IP address of your host machine and <port-number> is the port number where you want to access the RMI services exposed by the OPE server.
  2. Add the newly created variable JMX_RMI_ARGS to the command that invokes Java and passes the required arguments.
    For example,
    		java $JMX_RMI_ARGS -cp $CLASS_PATH $JVM_OPTIONS $CLASS_NAME ${ARGUMENTS[@]}

    If the port number that you are using is behind a firewall, make an exception for this port number.

    If using IP tables, make a new rule for this port number.

  3. Expose the port number used in Step 1 in the OMS server Docker file $AF_HOME/ docker/fom-ope/4.0.0/Dockerfile.
  4. Edit $AF_HOME/docker/docker-compose-run-ope.yml and map the port exposed for JMX under ports (maintain the white-spaces).
    For more information on how to map the port, refer to this step in the "Running the OMS Server Container on a Predefined Port" topic.
  5. Build the fom-ope docker image as mentioned in Building Docker Images.

Result

The RMI port for the OPE Server Docker container is now enabled.