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
-
- 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> - 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.
- Add the below properties in the jvm.options file of the liberty server.
- Below are the steps to achieve remote admin support for Liberty Server:
- Create a ZIETrans project by enabling admin console support.
- Update the jvm.options with the proper host and port.
- Add the features mentioned above in server.xml.
- Restart the server and deploy the application.
- Open the management scope and add the port and hostname mentioned in jvm.options.
- Enable manage all applications and click okay.
- Now go to connection Management/User management /Troubleshooting /License, and users should be able to see all applications running in that host and port.