<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub Inc>
<refentry id="list-jms-resources-1">
<refmeta><refentrytitle>list-jms-resources</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="list-jms-resources ">list-jms-resources
 &mdash; lists the JMS resources</primary></indexterm><indexterm><primary
sortas="gets all the JMS resources">lists the JMS resources &mdash; list-jms-resources 
</primary></indexterm><refname>list-jms-resources </refname><refpurpose>lists
the JMS resources</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>list-jms-resources</command>&synopsis-common;
<arg>&Dash;&Dash;restype <replaceable>type</replaceable></arg><arg><replaceable>
target</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>list-jms-resources</command> command lists the existing
JMS resources (destination and connection factory resources). This command
is supported in remote mode only.</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;restype</option></term>
<listitem><para>The JMS resource type can be <filename>javax.jms.Topic</filename>, <filename>
javax.jms.Queue</filename>, <filename>javax.jms.TopicConnectionFactory</filename>,
or <filename>javax.jms.QueueConnectionFactory</filename>.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>target</replaceable></term><listitem><para>
This operand specifies the target for which the JMS resources are to be listed.
Valid values are:<itemizedlist>
<listitem><para><literal>server</literal>, which lists the resources for the
default server instance. This is the default value.</para>
</listitem>
<listitem><para><literal>domain</literal>, which lists the resources for the
domain.</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which lists the resources
for the specified cluster.</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which lists the
resources for a particular server instance.<?Pub Caret></para>
</listitem>
</itemizedlist></para>
<para>&se-ee-only;</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the list-jms-resources command to list all JMS resources</title>
<screen>asadmin> <userinput>list-jms-resources --user admin1 
--passwordfile passwords.txt</userinput>
jms/Queue
jms/Topic
jms/QueueConnectionFactory
jms/DurableTopicConnectionFactory
Command list-jms-resources executed successfully.</screen>
</example>
<example>
<title>Using the list-jms-resources command to list JMS resources of a specified
type</title>
<screen>asadmin> <userinput>list-jms-resources --user admin1 
--passwordfile passwords.txt --restype javax.jms.TopicConnectionFactory</userinput>
jms/DurableTopicConnectionFactory
jms/TopicConnectionFactory
Command list-jms-resources executed successfully.</screen>
</example>
</refsect1>
<refsect1><title>&exit-tt;</title>
<variablelist termlength="medium">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
</refentry>
<?Pub *0000003938>
