How to deploy application in LB mode using AppManage command

How to deploy application in LB mode using AppManage command

book

Article ID: KB0084155

calendar_today

Updated On:

Products Versions
TIBCO Administrator -

Description

When deploying an application on one machine using Administrator GUI, we 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 LB mode, follow the steps below.

Issue/Introduction

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 AppManage commandline utility in LB mode please find the below steps.

Environment

All

Resolution

Example. There are 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 in LB mode.

1). Deploy application 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 configuration.xml file consisting binding details for 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>
<shutdown>

<checkpoint>false</checkpoint>
<timeout>0</timeout>

</shutdown>

</binding>

3). To deploy application testApplication in LB mode on machine B, we need to make changes in the configuration file such as adding binding details for machine B in the deployment configuration file. Simply copy contents from

<binding name="Process Archive">

to

</binding> tag

and paste that before the </bindings> tag.
 

4). Add binding details information for machine B. The binding configuration will looks like as follows.

<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>
<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>

<shutdown>
<checkpoint>false</checkpoint>
<timeout>0</timeout>

</shutdown>
</binding>

</bindings>

Note: Do not forget to change the binding name.

5). Save the configuration file and deploy the application using the following command.

AppManage -deploy -ear <drive:\path\APP.ear> -deployconfig <drive:\path\APP.xml> -app demo2 -domain TEST -user admin -pw admin

Additional Information

See the attached files  demo2.ear and demo2.xml .

Attachments

How to deploy application in LB mode using AppManage command get_app
How to deploy application in LB mode using AppManage command get_app