Add and remove Liberty features
Features are the units of functionality for the runtime environment loaded into a particular server. We add features using an XML snippet in the <feature> subelement of server.xml. Changes are applied dynamically.
- Edit...
/path/to/liberty/wlp/usr/servers/server_name/server.xml
- Set features...
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>
- Save changes.
Results
Your changes are applied. If the server is running, the changes are applied dynamically.
Parent topic: Administer the Liberty profile manuallyConcepts:
- Edit the Liberty profile configuration using developer tools
- Feature management
- Server configuration
- Liberty features
- Configuration elements in server.xml