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 New > Managed Liberty server from the Application servers console page and complete the wizard pages.

  1. In the console, click Servers > Server Types > WebSphere application servers > New > Managed Liberty server.
  2. Specify the required details, such as the node and server name.
  3. Click Next to select a server template.
  4. Click Next to configure server properties and generate unique ports for the server.
  5. Review the settings and click Finish.
  6. Click Save to apply the changes.
  7. Verify that the server appears in the WebSphere application servers page.
  8. Synchronize the changes with the nodes by navigating to System administration > Save changes to master repository.
  9. Select the Synchronize changes with Nodes checkbox.
  10. 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.

  1. Start the wsadmin scripting tool.
    wsadmin -lang jython
  2. 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.

  3. Use the AdminTask object to create the server.

    The following examples show the commands for the AdminTask object to create a server. In these examples, node_name is the name of the node that you are adding the new server to and server_name is 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'])
  4. Save the configuration changes.
    AdminConfig.save()
  5. Synchronize the node.
    AdminNodeManagement.syncNode('node_name')