Understanding Data Files

The data file is an XML file that specifies attributes of the objects that are operated on by AMXAdminTask.

A data file has the following structure.

<amxdata_base:Enterprise
xmlns:amxdata="http://tibco.com/amxadministrator/command/line/types"
xmlns:amxdata_base="http://tibco.com/amxadministrator/command/line/types_base"
xmlns:amxdata_reference="http://tibco.com/amxadministrator/command/line/types_reference"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tibco.com/amxadministrator/command/line/types ../schemas/amxdata.xsd 
 http://tibco.com/amxadministrator/command/line/types_base ../schemas/amxdata_base.xsd 
 http://tibco.com/amxadministrator/command/line/types_reference ../schemas/amxdata_reference.xsd">

	Objects

</amxdata_base:Enterprise>

Example Data File

The following is a sample of the data file:

<amxdata_base:Enterprise xmlns:amxdata="http://tibco.com/amxadministrator/command/line/types" xmlns:amxdata_base="http://tibco.com/amxadministrator/command/line/types_base" xmlns:amxdata_reference="http://tibco.com/amxadministrator/command/line/types_reference" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tibco.com/amxadministrator/command/line/types platform:/plugin/com.tibco.amf.tools.admincligen/model/cli_data.ecore#//types http://tibco.com/amxadministrator/command/line/types_base platform:/plugin/com.tibco.amf.tools.admincligen/model/cli_data.ecore http://tibco.com/amxadministrator/command/line/types_reference platform:/plugin/com.tibco.amf.tools.admincligen/model/cli_data.ecore#//types/types_reference">
  <Environment name="DevEnvironment" xsi:type="amxdata:Environment">
    <Node name="DevNode" xsi:type="amxdata:Node">
      <ResourceInstance applicationName="TestCLI" name="NewJDBCResource" resourceTemplateName="NewJDBCResource" scopeType="Application" xsi:type="amxdata:ResourceInstance"/>
      <ResourceInstance applicationName="TestCLI" name="NewJmsConnFactoryResource" resourceTemplateName="NewJmsConnFactoryResource" scopeType="Application" xsi:type="amxdata:ResourceInstance"/>
      <ResourceInstance applicationName="TestCLI" name="NewSMTPResource" resourceTemplateName="NewSMTPResource" scopeType="Application" xsi:type="amxdata:ResourceInstance"/>
      <ResourceInstance applicationName="TestCLI" name="httpConnector" resourceTemplateName="httpConnector" scopeType="Application" xsi:type="amxdata:ResourceInstance"/>
    </Node>
    <Node name="DevNode" xsi:type="amxdata:Node">
      <Feature componentID="TestCLI.customfeature.id" version="1.0.0" xsi:type="amxdata_base:FeatureID"/>
      <Feature componentID="TestCLI.customfeature.id" version="1.0.0.v2017-03-15-1808" xsi:type="amxdata_base:FeatureID"/>
    </Node>
    <Application folderPath="/" importResourceTemplates="true" name="TestCLI" resourceTemplatesScope="application" xsi:type="amxdata:Application">
      <Component name="Component1" xsi:type="amxdata_base:Component_base">
        <Node environmentName="DevEnvironment" name="DevNode" xsi:type="amxdata_reference:Node_reference"/>
      </Component>
      <Component name="Mediation1" xsi:type="amxdata_base:Component_base">
        <Node environmentName="DevEnvironment" name="DevNode" xsi:type="amxdata_reference:Node_reference"/>
      </Component>
      <Property name="Component1_Property1" propertyType="JdbcDataSource" value="NewJDBCResource" xsi:type="amxdata:Property"/>
      <Property name="Component1_Property2" propertyType="SmtpConfiguration" value="NewSMTPResource" xsi:type="amxdata:Property"/>
      <Property name="Component1_Property3" propertyType="JMSConnectionFactory" value="NewJmsConnFactoryResource" xsi:type="amxdata:Property"/>
      <Property name="MEDIATION_VALIDATE_MESSAGE_DATA" propertyType="boolean" value="false" xsi:type="amxdata:Property"/>
      <PromotedService name="HelloWorldPT" xsi:type="amxdata_base:Service_base">
        <Binding name="Binding00" xsi:type="amxdata_base:Binding_base">
          <Node environmentName="DevEnvironment" name="DevNode" xsi:type="amxdata_reference:Node_reference"/>
          <Property name="HttpInboundConnectionConfig" propertyType="HttpConnector" value="httpConnector" xsi:type="amxdata:Property"/>
        </Binding>
      </PromotedService>
      <ResourceTemplate headerBufferSize="4096" host="0.0.0.0" name="httpConnector" port="9090" requestBufferSize="8192" xsi:type="amxdata:HttpConnectorResourceTemplate"/>
      <ApplicationTemplate name="TestCLI" version="1.0.0.v2017-03-15-1808" xsi:type="amxdata_reference:ApplicationTemplate_reference"/>
      <ImportResourceTemplateName>NewJDBCResource</ImportResourceTemplateName>
      <ImportResourceTemplateName>NewSMTPResource</ImportResourceTemplateName>
      <ImportResourceTemplateName>NewJndiConnResource</ImportResourceTemplateName>
      <ImportResourceTemplateName>NewJmsConnFactoryResource</ImportResourceTemplateName>
    </Application>
  </Environment>
  <DAA location="/Users/macbookkwan/workspace_testintaller_delta_2/TestCLI/Deployment Artifacts/TestCLI.daa" xsi:type="amxdata:DAA">
    <importFeatureIdentifier>TestCLI.customfeature.id:1.0.0.v2017-03-15-1808</importFeatureIdentifier>
  </DAA>
  <Feature componentID="TestCLI.customfeature.id" version="1.0.0.v2017-03-15-1808" xsi:type="amxdata_base:FeatureID"/>
  <AppTemplate name="TestCLI" version="1.0.0" xsi:type="amxdata_base:AppTemplateID"/>
</amxdata_base:Enterprise>