Skip Headers
Oracle GlassFish Server Reference Manual
Release 3.1.2

Part Number E24938-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

list-jms-resources

lists the JMS resources

Synopsis

list-jms-resources [--help]
[--restype type]
[target]

Description

The list-jms-resources subcommand lists the existing Java Message Service (JMS) resources (destination and connection factory resources).

This subcommand is supported in remote mode only. Remote asadmin subcommands require a running domain administration server (DAS).

Options

--help
-?

Displays the help text for the subcommand.

--restype

The JMS resource type can be javax.jms.Topic, javax.jms.Queue, javax.jms.ConnectionFactory, javax.jms.TopicConnectionFactory, or javax.jms.QueueConnectionFactory.

Operands

target

Restricts the listing to resources for a specified target. Valid values are as follows:

server

Lists the resources for the default server instance. This is the default value.

domain

Lists the resources for the domain.

cluster-name

Lists the resources for every server instance in the specified cluster.

instance-name

Lists the resources for the specified server instance.

Examples

Example 1   Listing all JMS resources

The following subcommand lists all JMS resources.

asadmin> list-jms-resources
jms/Queue
jms/ConnectionFactory
jms/DurableConnectionFactory
jms/Topic
Command list-jms-resources executed successfully.
Example 2   Listing JMS resources of a specified type

The following subcommand lists all javax.jms.ConnectionFactory resources.

asadmin> list-jms-resources --restype javax.jms.ConnectionFactory
jms/ConnectionFactory
jms/DurableConnectionFactory
Command list-jms-resources executed successfully.

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also

create-jms-resource(1), delete-jms-resource(1)

asadmin(1M)