<!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 EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip
 laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen ne>
<?Pub Inc>
<refentry id="list-jndi-resources-1">
<refmeta><refentrytitle>list-jndi-resources</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="list-jndi-resources">list-jndi-resources &mdash;
lists all existing JNDI resources</primary></indexterm><indexterm><primary
sortas="lists all the existing JNDI resources"><?Pub Caret>lists all existing
JNDI resources&mdash; list-jndi-resources</primary></indexterm><refname>list-jndi-resources
</refname><refpurpose>lists all existing JNDI resources</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>list-jndi-resources</command>&synopsis-common;
<arg><replaceable>target</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>Use the <command>list-jndi-resources</command> command to identify all
the existing JNDI resources. This command is supported in remote mode only.
</para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>target</replaceable></term><listitem><para>
This operand specifies which jndi resources you can list. Valid values are:<itemizedlist>
<listitem><para><literal>server</literal>, which lists the resources on the
default server instance. This is the default value</para>
</listitem>
<listitem><para><literal>domain</literal>, which lists the resources in the
domain</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which lists the resources
for every server instance in the cluster</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which lists the
resources for a particular server instance</para>
</listitem>
</itemizedlist></para>
<para>&se-ee-only;</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the list-jndi-resources command</title>
<para>The following is an example for using the <command>list-jndi-resources
</command> command in the Platform Edition.</para>
<screen>asadmin> <userinput>list-jndi-resources --user admin --passwordfile passwords.txt 
--host plum</userinput>
jndi_resource1
jndi_resource2
jndi_resource3
Command list-jndi-resources executed successfully</screen>
<para>The following is an example for using the <command>list-jndi-resources
</command> command in the Enterprise Edition.</para>
<screen>asadmin> <userinput>list-jndi-resources --user admin --passwordfile 
passwords.txt --host plum --port 4849 instance1</userinput>
jndi_resource1
jndi_resource2
jndi_resource3
Command list-jndi-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>
<refsect1><title>&also-tt;</title>
<para><link linkend="create-jndi-resource-1"><citerefentry><refentrytitle>
create-jndi-resource</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="delete-jndi-resource-1"><citerefentry><refentrytitle>delete-jndi-resource
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000004107>
