How to do a partial XML export of your configuration

Technote (FAQ)
Problem
To do a partial export of your Websphere Administrative Domain configuration, you need to create an xml file specifying the resources you would like to export.
Solution
To do a partial export of your Websphere Administrative Domain configuration, you need to create an xml file specifying the resources you would like to export.

This partial file is then used as an input parameter in the XMLConfig export:
xmlconfig -export <fileName> -adminNodeName <adminNodeName> -partial <partialFileName>

The partial xml file always starts with <websphere-sa-config> and ends with </websphere-sa-config>. What goes in between these tags depends on what you want to export. Here are two examples of partial xml files you would create to specify the resources you would like to export:

1. Export one Application Server's contents (PartialFile1.xml):

<websphere-sa-config>
<node name="mynode" action="locate">
<application-server name="pmrServer" action="export">
</application-server>
</node>
</websphere-sa-config>

2. Export one web application from a given web server on a node (PartialFile2.xml):

<websphere-sa-config>
<node name="mynode" action="locate">
<application-server name="Default Server" action="locate">
<servlet-engine name="servletEngine" action="locate">
<web-application name="TestApp" action="export">
</web-application>
</servlet-engine>
</application-server>
</node>
</websphere-sa-config>


So the XMLConfig command to export a single web application (as defined by PartialFile2.xml above) would be:

xmlconfig -export <NewExport.xml> -adminNodeName <mynode> -partial <PartialFile2.xml>

Refer to section 6.6.0.2.1.1 in the WAS 3.5 InfoCenter as well.












Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, Servlet Engine/Web Container
Operating system(s): AIX, Windows NT, Solaris
Software version: 3.0.2.4, 3.5, 4.0
Software edition: Standard, Advanced
Reference #: 1000082
IBM Group: Software Group
Modified date: 2003-01-17