jmsmanage_selectors

Description

Adds and removes selectors to and from JMS message queues.

Syntax

Local mode support: No.

Command line:

jmsmanage_selectors 
connect-args 
-action "selector" 
MessageQueue:queue

Ant build file:  

<jag_manage_selectors action=”action” selector="selector" entity="MessageQueue:queue"/>

Option

Description

Required

connect-args

Arguments to specify a connection to the server. See “Using connected mode”.

Yes

action

add to add the selector to the queue or remove to remove the selector from the queue.

Yes

selector

The JMS selector.

Yes

queue

The message queue name.

Yes

Returns

Return value

Indicates

0

The command ran successfully; the result is true/success.

2

The command did not run successfully; an exception was thrown.

Examples

Example 1

These commands install and remove a selector topic='test' from the queue MyQueue:

jagtool jmsmanage_selectors -add "topic='test'" MessageQueue:MyQueue

jagtool jmsmanage_listeners -remove "topic='test'" MessageQueue:MyQueue