jmsflush  jmslist_listeners

Chapter 12: Using jagtool and jagant

jmslist

Description

Lists JMS entities of the specified type.

Syntax

Local mode support: No.

Command line:

jmslist connect-args type

Ant build file:

<jag_jmslist type=”type” />

Where connect-args is the list of arguments to specify a connection to the server, described in “Using connected mode”, and type is one of the following JMS entity types:

Type specifier

To list names of

ActiveMessageQueue

Currently active message queues.

ConfMessageQueue

Configured message queues (queues that were created administratively rather than programmatically).

ActiveMessageTopic

Currently active message topics.

ConfMessageTopic

Configured message topics (topics that were created administratively rather than programmatically).

QueueConnectionFactory

Queue connection factories.

ThreadPool

Thread pools.

TopicConnectionFactory

Topic connection factories.

Note<system> message queue and thread pool The message service includes a message queue and a thread pool called “<system>” for tasks that require internal messaging, such as synchronizing a cluster. The <system> message queue and thread pool are visible in EAServer Manager and as output from jagtool jmslist commands.

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

This command line example lists active JMS message queues:

jagtool jmslist ActiveMessageQueue

Example 2

This example does the same in an Ant build file:

<jag_jmslist type="ActiveMessageQueue" />




Copyright © 2005. Sybase Inc. All rights reserved. jmslist_listeners