Creating managed Liberty servers
With managed Liberty servers in the Modernized Runtime Extension for Java enabled, you can centrally create and configure WebSphere® Application Server Liberty runtime environments. You can create and administer these servers by using the administrative console or the wsadmin tool.
Creating managed Liberty servers with the console
Use the Create a new application server wizard in the console to create a managed Liberty server. Click from the Application servers console page and complete the wizard pages.
- In the console, click .
- Specify the required details, such as the node and server name.
- Click Next to select a server template.
- Click Next to configure server properties and generate unique ports for the server.
- Review the settings and click Finish.
- Click Save to apply the changes.
- Verify that the server appears in the WebSphere application servers page.
- Synchronize the changes with the nodes by navigating to .
- Select the Synchronize changes with Nodes checkbox.
- Click Save to apply the changes.
Creating managed Liberty servers by using the wsadmin
To create a managed Liberty server by using the wsadmin, use the AdminTask.createManagedLibertyServer command.
- Start the wsadmin scripting tool.
wsadmin -lang jython - Obtain the configuration ID of the node object.
For more information, see Creating a server using scripting in the Network Deployment 9.0.5 documentation.
- Use the
AdminTaskobject to create the server.The following examples show the commands for the
AdminTaskobject to create a server. In these examples,node_nameis the name of the node that you are adding the new server to andserver_nameis the name of the server that you are creating.- Jacl:
$AdminTask createManagedLibertyServer node_name {-name server_name} - Jython:
AdminTask.createManagedLibertyServer('node_name', ['-name', 'server_name'])
- Jacl:
- Save the configuration changes.
AdminConfig.save() - Synchronize the
node.
AdminNodeManagement.syncNode('node_name')