What is the difference between the setprop and addprop EMS admin commands?

What is the difference between the setprop and addprop EMS admin commands?

book

Article ID: KB0094655

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
Description:
= = = = = = =
Description on setprop and addprop admin commands of EMS server.

Environment:
= = = = = = =
ALL

Resolution:
= = = = = =
Setprop commands are used to set properties on factory, queue, route and topic.
If there were any properties already set, those will not be retained while using setprop.
The setprop command will over write all the properties that were set earlier.
The following is the syntax of the commands to set properties on factory, queue, route and topic.

setprop factory factory-name properties
setprop queue queue-name properties
setprop route route-name properties
setprop topic topic-name properties

Addprop commands are used to add properties on factory, queue, route and topic.
If there were any properties already set, those will be retained and the new properties will get added. The addprop command will not overwrite the properties that were set earlier and will add the new properties along with the existing properties. The following are the syntax of the commands to add properties  on factory, queue, route and topic.


addprop factory factory-name properties
addprop queue queue-name properties
addprop route route-name prop=value
addprop topic topic_name properties

Issue/Introduction

What is the difference between the setprop and addprop EMS admin commands?