Products | Versions |
---|---|
TIBCO Administrator | - |
When deploying an application on one machine using Administrator GUI we will have to select the ‘add to Additional Machine’ option in the Tibco Administrator console to add the instance to another machine. To deploy the application using the AppManage commandline utility in FT mode, follow the steps below.
Example: You have two machines, A and B. There is a domain called TEST on machine A. You have deployed one application named testApplication on machine A Follow the steps below to deploy it in FT mode.
1). Deploy application testApplication in TEST domain on machine A.
2). Export the deployment configuration file using the AppManage -export command.
AppManage -export -ear <drive:\path\testApplication.ear> -out <drive:\path\testApplication.xml>
You will get a configuration file named testApplication.xml consisting of binding details for the application testApplication on machine A
<binding name="Process Archive">
<machine>machine A</machine>
<product>
<type>BW</type>
<version>[version]</version>
<location>[drive:/tibco_home/bw/<version>]</location>
</product>
<setting>
<startOnBoot>false</startOnBoot>
<enableVerbose>false</enableVerbose>
<maxLogFileSize>20000</maxLogFileSize>
<maxLogFileCount>5</maxLogFileCount>
<threadCount>8</threadCount>
<NTService>
<runAsNT>false</runAsNT>
<startupType>automatic</startupType>
</NTService>
<java>
<initHeapSize>32</initHeapSize>
<maxHeapSize>256</maxHeapSize>
<threadStackSize>256</threadStackSize>
</java>
</setting>
<ftWeight>200</ftWeight>
<shutdown>
<checkpoint>false</checkpoint>
<timeout>0</timeout>
</shutdown>
</binding>
3). To deploy application testApplication in FT mode on machine B we need to make some changes in the configuration file such as we need to add binding details for machine B in the deployment configuration file of testApplication. Copy the contents of binding details from
<binding name="Process Archive">
to
</binding> tag
and paste that before the </bindings> tag
4). Add parameter <ftWeight>[value]</ftWeight> in both machines binding details below </setting> and above the <shutdown> tag.
5. )Add the binding details information for machine B. The binding configuration will looks like the following.
<bindings>
<binding name="Process Archive">
<machine>machine A</machine>
<product>
<type>BW</type>
<version>[version]</version>
<location>[drive:/tibco_home/bw/<version>]</location>
</product>
<setting>
<startOnBoot>false</startOnBoot>
<enableVerbose>false</enableVerbose>
<maxLogFileSize>20000</maxLogFileSize>
<maxLogFileCount>5</maxLogFileCount>
<threadCount>8</threadCount>
<NTService>
<runAsNT>false</runAsNT>
<startupType>automatic</startupType>
</NTService>
<java>
<initHeapSize>32</initHeapSize>
<maxHeapSize>256</maxHeapSize>
<threadStackSize>256</threadStackSize>
</java>
</setting>
<ftWeight>200</ftWeight>
<shutdown>
<checkpoint>false</checkpoint>
<timeout>0</timeout>
</shutdown>
</binding>
<binding name="Process Archive-1">
<machine>machine B</machine>
<product>
<type>BW</type>
<version>[version]</version>
<location>[drive:/tibco_home/bw/<version>]</location>
</product>
<setting>
<startOnBoot>false</startOnBoot>
<enableVerbose>false</enableVerbose>
<maxLogFileSize>20000</maxLogFileSize>
<maxLogFileCount>5</maxLogFileCount>
<threadCount>8</threadCount>
<NTService>
<runAsNT>false</runAsNT>
<startupType>automatic</startupType>
</NTService>
<java>
<initHeapSize>32</initHeapSize>
<maxHeapSize>256</maxHeapSize>
<threadStackSize>256</threadStackSize>
</java>
</setting>
<ftWeight>200</ftWeight>
<shutdown>
<checkpoint>false</checkpoint>
<timeout>0</timeout>
</shutdown>
</binding>
</bindings>
6). In the configuration file, change the parameter
<isFt>false</isFt>
to
<isFt>true</isFt>
7). Save the configuration file and deploy the application using the command:
AppManage -deploy -ear <drive:\path\testApplication.ear> -deployconfig <drive:\path\testApplication.xml> -app testApplication -domain TEST -user admin -pw admin