2.19.7 flush-jmsdest
Purges messages in a JMS destination.
Synopsis
asadmin [asadmin-options] flush-jmsdest [--help] --desttype {topic|queue} [--target target] destname
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The flush-jmsdest subcommand purges the messages from a physical destination in the server's Java Message Service (JMS) configuration. This subcommand is supported in remote mode only.
Precondition
Domain Administration Server (DAS) is running.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --desttype {topic|queue}
-
Specifies the type of physical destination from which you want to purge messages.
Type: String
The following values can be specified:
-
topic
-
queue
Default value: N/A
-
- --target target
-
Purges messages from the physical destination only for the specified target.
Type: String
The following values can be specified:
-
server
Purges messages from the physical destination for the default server instance. This is the default value.
-
configuration-name
Purges messages from the physical destination in the specified configuration.
-
cluster-name
Purges messages from the physical destination for every server instance in the specified cluster.
-
instance-name
Purges messages from the physical destination for the specified server instance.
Default value: server
-
- dest_name
-
Specifies the unique identifier of the JMS destination to be purged.
Type: String
The following values can be specified:
-
Name of the physical destination
Default value: N/A
-
Examples
The following subcommand purges messages from the queue named PhysicalQueue on the server instance instance1.
asadmin flush-jmsdest --target instance1 --desttype queue PhysicalQueue
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |