Distribute an existing application to additional nodes using the command line interface (CLI).

Distribute an existing application to additional nodes using the command line interface (CLI).

book

Article ID: KB0093098

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix Service Grid -
TIBCO ActiveMatrix BusinessWorks Service Engine -
Not Applicable -

Description

Description:
To distribute applications to nodes for first time using CLI, you can use action="add" or action="set". When you distribute the same application to more nodes from the CLI, if you use action="add", then it will overwrite the existing distribution list and add new nodes to distributions based on data present in the data.xml file. 

Issue/Introduction

Distribute an existing application to additional nodes using the command line interface (CLI).

Resolution

To prevent overwriting of an existing distribution list, use action="add" instead of action="set" when you use CLI scripts to distribute an existing application to additional nodes. A sample build.xml file is shown below.

build.xml
========
<target name="distribute.app" description="Distributing Application">
<AMXAdminTask
action="add"
objectSelector="Environment//Application//Component/Node | Environment//Application//PromotedService//Binding/Node | 

Environment//Application//PromotedReference//Binding/Node"
..
overwrite="false"
merge="true"
createIfNotExists="true"
force="false"
failOnError="false"/>
</target>
======