+

Search Tips   |   Advanced Search

Component level sdd.xml file


The install-paa task parses the PAA directory tree, and for each component directory, verifies there is an sdd.xml file. If not found, one is generated using the information gathered from the directory parsing step.

The Solution Installer uses the data gathered about the resource types included in the Portal Application Archive (PAA) file. It also uses the component directory name to generate the sdd.xml file.

For many situations, this automated step is enough to allow the PAA files to be deployed successfully. There are situations where the developer needs to overwrite the functionality of Solution Installer as the auto-generated code does not meet their requirements for a specific resource type.

In addition, there might be configuration steps that are not covered directly by the Solution Installer code generation that need to be included in the PAA file for the application to be successfully deployed and configured on the server. This article outlines the different pieces of the component level sdd.xml file in terms of their usage by the Solution Installer. In addition, steps on how to create our own custom sdd.xml file and where to include relevant information on the component for successful deployment are also included.

If we are providing a component level sdd.xml file, you do not need to provide information for all the resources included in the PAA file. Provide information where we are not using the Solution Installer generated code. Also include information for steps that are not covered by the Solution Installer. If resources in the PAA file are still relying on the default code, the Solution Installer adds the relevant pieces to the sdd.xml file in addition to the elements included by the developer.

Example component level sdd.xml file...

<?xml version="1.0" encoding="UTF-8"?>

<iudd:iudd
 xmlns:iudd="http://www.ibm.com/xmlns/prod/autonomic/solutioninstall/IUDD"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:OSRT="http://www.ibm.com/xmlns/prod/autonomic/resourcemodel/OS/resourcetypes"
 xmlns:OSAT="http://www.ibm.com/xmlns/prod/autonomic/resourcemodel/OS/artifacttypes"
 xmlns:J2EERT="http://www.ibm.com/xmlns/prod/autonomic/resourcemodel/J2EE/resourcetypes"
 xsi:schemaLocation="http://www.ibm.com/xmlns/prod/autonomic/solutioninstall/IUDD ../iudd/iudd.xsd"
 schemaVersion="2.0.0" buildID="112220" buildDate="2006-01-19T12:00:00">

 <packageIdentity contentType="Component">
  <name>components/componentN</name>
  <version>8.0.0.0</version>
  <displayName key="d0001" default="components/componentN" />
  <manufacturer>
   <displayName key="AC_01" default="IBM" />
  </manufacturer>
 </packageIdentity>

 <topology>
  <resource type="OSRT:OperatingSystem" id="OS" />
 </topology>

 <content xsi:type="iudd:RootIUContent">
  <rootIU id="components/componentN">
   <variables>
    <parameters>
     <parameter name="installLocation" defaultValue="/usr/dummy.offr.1" />
    </parameters>
   </variables>

   <SCU id="deploy-portlets-applySIFeaturePack" targetRef="OS">
    <identity>
     <name>Do Configuration Task</name>
     <version>8.0.0.0</version>
     <displayName key="keyInBundle"
      default="Executes Configuration for this component" />
     <description key="keyInBundle"
      default="This section runs configuration for this component" />
    </identity>
    <unit>
     <configArtifact type="ConfigEngine">
      <parameters>
       <parameter name="targetName" value="deploy-portlets-applySIFeaturePack" />
      </parameters>
     </configArtifact>
    </unit>
   </SCU>
   <SCU id="remove-portlets-applySIFeaturePack" targetRef="OS">
    <identity>
     <name>Do Configuration Task</name>
     <version>1.0.0.0</version>
     <displayName key="keyInBundle"
      default="Executes Configuration for this component" />
     <description key="keyInBundle"
      default="This section runs configuration for this component" />
    </identity>
    <unit>
     <configArtifact type="ConfigEngine">
      <parameters>
       <parameter name="targetName" value="remove-portlets-applySIFeaturePack" />
      </parameters>
     </configArtifact>
    </unit>
   </SCU>
  </rootIU>
 </content>

</iudd:iudd>

Inside the root <iudd:iudd> element the following three important sub-elements are required for installation with the Solution Installer:


Parent: Develop advanced solution applications