Lists JMS entities of the specified type.
jmslist connect-args type
<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 |
---|---|
|
Currently active message queues |
|
Configured message queues (queues that were created administratively rather than programmatically) |
|
Currently active message topics |
|
Configured message topics (topics that were created administratively rather than programmatically) |
|
Queue connection factories |
|
Thread pools |
|
Topic connection factories |
Return value |
Indicates |
---|---|
0 |
The command ran successfully; the result is true/success. |
2 |
The command did not run successfully; an exception was thrown. |
This command line example lists active JMS message queues:
jagtool jmslist ActiveMessageQueue
This example does the same in an Ant build file:
<jag_jmslist type="ActiveMessageQueue" />