jmsdelete  jmslist

Chapter 12: Using jagtool and jagant

jmsflush

Description

Flushes the messages from the specified message queue.

Syntax

Local mode support: No.

Command line:

jmsflush connect-args MessageQueue:QueueName

Where connect-args is the list of arguments to specify a connection to the server. See “Using connected mode”.

Ant build file:

<jag_jmsflush entity=”MessageQueue:QueueName” />

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 flushes the message queue “MyQueue”:

jagtool jmsflush MessageQueue:MyQueue

Example 2

This example does the same thing in an Ant build file:

<jag_jmsflush entity="MessageQueue:MyQueue" />




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