WAS v8.5 > Administer applications and their environment > Administer the Liberty profile > Administer the Liberty profile manuallyAdd and remove 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> sub-element of the server.xml configuration file. When you add or remove Liberty features, the changes are applied dynamically.
We can add and remove Liberty features as described in this topic, or with developer tools.
These are the XML snippets that enable the main features:
- <feature>appSecurity-1.0</feature>
- <feature>beanvalidation-1.0</feature>
- <feature>blueprint-1.0</feature>
- <feature>jaxrs-1.1</feature>
- <feature>jdbc-4.0</feature>
- <feature>jndi-1.0</feature>
- <feature>jpa-2.0</feature>
- <feature>jsf-2.0</feature>
- <feature>jsp-2.2</feature>
- <feature>json-1.0</feature>
- <feature>localConnector-1.0</feature>
- <feature>monitor-1.0</feature>
- <feature>osgi.jpa-1.0</feature>
- <feature>restConnector-1.0</feature>
- <feature>serverStatus-1.0</feature>
- <feature>servlet-3.0</feature>
- <feature>sessionDatabase-1.0</feature>
- <feature>ssl-1.0</feature>
- <feature>wab-1.0</feature>
Including a feature in the configuration might cause one or more Liberty features.additional, required features to be loaded automatically. For example, if you include the wab-1.0 feature, the servlet-3.0 and blueprint-1.0 features are loaded automatically.
- Edit...
usr/servers/worklightServer/server.xml
- 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. This is also a valid server configuration:
< featureManager> <feature>Servlet-3.0</feature> <feature>localConnector-1.0</feature> </featureManager>
- Save the changes to the configuration file.
If the server is running, the changes are applied dynamically.
Parent topic: Administer the Liberty profile manually
Related concepts:
Liberty profile: Feature management
Liberty profile: Server configuration
Reference:
Liberty features
Liberty profile: Configuration elements in server.xml