Displaying the server configuration in a merged view
We can use the Merged Configuration view to see a flattened view of the server configuration and any included configuration files.
In the Server Configuration editor, under the Configuration Structure section, we can use the Include element to import files containing additional configuration settings. The Include element can embed multiple layers of configuration files within server.xml, which can make the configuration difficult to read without tools. The Merged Configuration view provides a flattened view of the server configuration and any included configuration files. This is a read-only view and cannot be edited.
To display the server configuration in a merged view:
In the Servers view, right-click the server configuration and select Open Merged View.
Example
This is a screen capture of the Server Configuration editor that uses the Include element to embed the common.xml file into server.xml.
Here is an example of the source code for server.xml. Look at the include tag which imports the common.xml file:
<server> <featureManager> <feature>jsp-2.2</feature> <feature>servlet-3.0</feature> </featureManager> <application id="Web2.5" location="Web2.5.war" name="Web2.5" type="war"/> <include location="common.xml"/> </server>Here is an example of the source code for the common.xml file:
<server> <application id="Setup" location="Setup.war" name="Setup" type="war"/> </server>This is a screen capture of the Merged Configuration view:
Look under the Configuration Structure sections to see the difference between the Server Configuration editor and Merged Configuration view. The Merged Configuration view replaces the Include: common.xml element from the Server Configuration editor with Application: Setup element.
Parent topic: Administer the Liberty profile using developer toolsTasks:
Specify Liberty profile bootstrap properties Administer the Liberty profile manually Reference:
Configuration elements in server.xml