Remote admin support for Liberty Server

This implementation enables to offer a remote administrative support for ZIETrans applications deployed on the Liberty server. This functionality empowers efficiently to oversee all applications hosted on the same server or a remote one.

Users will have access to a "Getting Started" tab, offering a comprehensive management scope. By providing the relevant Host and Port details, users gain the capability to administrate a wide range of functions across all applications. This encompasses Connection Management, Log Settings, License Configuration, and User Management.

Pre-Conditions
  1. Add the below properties in the jvm.options file of the liberty server.

    The hostname here is the machine's IP address where liberty is installed.

    -Dcom.sun.management.jmxremote=true
    -Dcom.sun.management.jmxremote.port=8888
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.ssl=false
    -Djava.rmi.server.hostname=<hostname>

  2. Add the below features in server.xml:
      <feature>jndi-1.0</feature>
      <feature>restConnector-2.0</feature>
    
    Note: The port given in jvm options will be used in the admin console Management scope.
Below are the steps to achieve remote admin support for Liberty Server:
  1. Create a ZIETrans project by enabling admin console support.
  2. Update the jvm.options with the proper host and port.
  3. Add the features mentioned above in server.xml.
  4. Restart the server and deploy the application.
  5. Open the management scope and add the port and hostname mentioned in jvm.options.
  6. Enable manage all applications and click okay.
  7. Now go to connection Management/User management /Troubleshooting /License, and users should be able to see all applications running in that host and port.