Adding and removing Liberty features

Features are the units of functionality by which you control the pieces of the runtime environment that are loaded into a particular server. To add or remove a Liberty feature, you add or remove an XML snippet in the <feature> subelement of the server.xml configuration file. When you add or remove Liberty features, the changes are applied dynamically.

Before you begin

You can add and remove Liberty features as described in this topic, or as described in Editing the Liberty profile configuration by using developer tools.

About this task

For a list of the main Liberty features, including the XML snippets that enable them, see Liberty features.

Procedure

To add or remove Liberty features, complete the following steps:

  1. Open the server.xml configuration file for editing.

    You can do this using a text editor. By default, the path and file name for the configuration root document file is usr/servers/server_name/server.xml. However, you can change the path. See Fix Pack 8501 Customizing the Liberty profile environment.

  2. Add or remove features in the configuration file.
    The set of features is enclosed within the <featureManager> element, and each feature within the <feature> subelement. For example:
    <server>
      <featureManager>
        <feature>servlet-3.0</feature>
        <feature>localConnector-1.0</feature>
      </featureManager>
    </server>
    The matching of feature names is not case-sensitive; the following example is also a valid server configuration:
    <featureManager>
            <feature>Servlet-3.0</feature>
            <feature>localConnector-1.0</feature>
    </featureManager>
  3. Save the changes to the configuration file.

Results

Your changes are applied. If the server is running, the changes are applied dynamically.

Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Wednesday, 22 May 2013
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twlp_setup_feat
File name: twlp_setup_feat.html