Transport of XML Configuration
You can transport the XML configuration to the UWL via UWL Deployment Hook.
1. Create the zip file for your XML configuration (see Internationalization of XML Configuration).
For example, uwl_sample.zip. If no internationalization is needed then instead of uwl_sample.zipan XML file itself can be used, but it also has to start with uwl_, for example uwl_sample.xml.
2. Put it in the par file in the format as shown in the following example. In this example the configuration is sample, and the project is com.sap.xyz.sample:
PORTAL-INF\private\classes\uwl_sample.zip
PORTAL-INF\portalapp.xml
Where portalapp.xml:
<?xml version="1.0" encoding="iso-8859-1"?> <application name="com.sap.xyz.sample" alias="com.sap.xyz.sample"> <application-config> <property name="releasable" value="true"/> <property name="PreservedConfigPaths" value=""/> <property name="Vendor" value="sap.com"/> <property name="ServicesReference" value="com.sap.netweaver.bc.uwl"/> </application-config> <components/> <services/> </application> |
3. Put the par file into an ear file. The ear file will also contain:
META-INF\MANIFEST.MF
META-INF\SAP_MANIFEST.MF
META-INF\application-j2ee-engine.xml
META-INF\application.xml
META-INF\com.sap.xyz.sample-dd.xml
Where MANIFEST.MF:
Manifest-Version: 1.0
Specification-Version: 1.0
SAP_MANIFEST.MF:
Manifest-Version: 1.0
Software type: J2EE
deploy file: com.sap.xyz.sample-dd.xml
key name: com.sap.xyz.sample
key vendor: sap.com
key location: SAP AG
key counter: 7.10.20061707170244.0000
application-j2ee-engine.xml:
<?xml version="1.0" encoding="UTF-8" ?> <application-j2ee-engine> <modules-additional> <module> <entry-name>com.sap.xyz.sample.par</entry-name> <container-type>PortalRuntimeContainer</container-type> </module> </modules-additional> </application-j2ee-engine> |
application.xml:
<?xml version="1.0" encoding="UTF-8" ?> <application> <display-name>com.sap.xyz.sample</display-name> </application> |
com.sap.xyz.sample-dd.xml:
<?xml version="1.0" ?> <SDA> <SoftwareType>J2EE</SoftwareType> <engine-deployment-descriptor version="2.0"/> </SDA> |
When the ear file is deployed, the UWL service should be running, and it uploads the XML configuration and registers it with the medium priority.
