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 data file defines a node named admin01-node and an application named JavaDateManagerSoa in an environment named hw, a resource instance named datemgrConnector on the node, a mapping of the application to the node, an application template named JavaDateManagerSoa, a resource template named DateMgrConnectorTemplate, and a distributed application archive.
<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"> <Environment xsi:type="amxdata:Environment" name="hw" > <Node xsi:type="amxdata_base:Node_base" name="admin01-node"> <ResourceInstance xsi:type="amxdata:ResourceInstance" name="datemgrConnector" resourceTemplateName="DateMgrConnectorTemplate"/> </Node> <Application xsi:type="amxdata:Application" name="datemanager" importBindings="true"> <Node name="admin01-node" environmentName="hw"/> <ApplicationTemplate xsi:type="amxdata_reference:ApplicationTemplate_reference" name="JavaDateManagerSoa"/> </Application> </Environment> <ResourceTemplate xsi:type="amxdata:HttpConnectorResourceTemplate" name="DateMgrConnectorTemplate" host="localhost" port="9870"/> <DAA xsi:type="amxdata:DAA" location="JavaDateManagerSoa.daa" importResourceTemplates="false"/DAA> </amxdata_base:Enterprise>
Copyright © Cloud Software Group, Inc. All rights reserved.