<!--Arbortext, Inc., 1988-2007, v.4002-->
<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD SolBook 3.5//EN" [
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "common.ent">
%commonents;
]>
<!--Arbortext, Inc., 1988-2007, v.4002-->
<?Pub UDT _bookmark _target>
<?Pub EntList bull rArr sect>
<?Pub Inc>
<refentry id="list-sub-components-1">
<!-- @(#)list-sub-components.1 1.11 07/07/03 SMI; -->
<refmeta><refentrytitle>list-sub-components</refentrytitle><manvolnum>1</manvolnum>
<refmiscinfo class="date">30 Jan 2007</refmiscinfo>
<refmiscinfo class="sectdesc">&man1;</refmiscinfo>
<refmiscinfo class="software">&software;</refmiscinfo>
<refmiscinfo class="arch">generic</refmiscinfo>
<refmiscinfo class="copyright">Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved</refmiscinfo>
</refmeta>
<refnamediv><indexterm><primary>list-sub-components</primary></indexterm><indexterm><primary>lists EJBs or Servlets in deployed module or module of deployed application</primary></indexterm>
<refname>list-sub-components</refname><refpurpose>lists EJBs or Servlets in deployed module or module of deployed application</refpurpose></refnamediv>
<refsynopsisdiv><title></title>
<synopsis><command>list-sub-components</command> &synopsis-common; [<option role="double-dash">type</option> <replaceable>ejbs|servlets</replaceable>]
 [<option role="double-dash">appname</option> <replaceable>appname</replaceable>] <replaceable>modulename</replaceable></synopsis>
</refsynopsisdiv>
<refsect1 role="description"><title></title>
<para>This command lists EJBs or Servlets in a deployed module or in a module of the deployed application. If a module is not identified, all modules are listed. The <option>-appname</option> option functions only when the given module is standalone. To display a specific module in an application,
you must specify the module name and the <option>-appname</option> option. This command is supported in remote mode only.</para>
</refsect1>
<refsect1 role="options"><title></title>
<variablelist termlength="narrow">&options-common;
<varlistentry><term><option>type</option></term>
<listitem><para>This is the type of component to be listed. The options are ejbs and servlets. If nothing is specified, then all of the components are listed.</para>
</listitem>
</varlistentry>
<varlistentry><term><option>appname</option></term>
<listitem><para>Identifies the name of the application. This option is required when the desired output is the sub-components of an embedded module of a deployed application.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="operands"><title></title>
<variablelist termlength="narrow">
<varlistentry><term><option>modulename</option></term>
<listitem><para>This is the name of the module containing the sub-component.</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="examples"><title></title>
<example><title>Using <command>list-sub-components</command></title>
<screen>asadmin> <userinput>list-sub-components --user admin --appname MEjbApp mejb.jar</userinput>
Please enter admin password>
MEJBBean &lt;StatelessSessionBean>
Command list-sub-components executed successfully.</screen>
</example>
</refsect1>
<refsect1 role="exit-status"><title></title>
<variablelist termlength="narrow">
<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 role="see-also"><title></title>
<para><olink targetdoc="asrefman" targetptr="deploy-1">deploy(1)</olink>, <olink targetdoc="asrefman" targetptr="deploydir-1">deploydir(1)</olink>, <olink targetdoc="asrefman" targetptr="undeploy-1">undeploy(1)</olink>, <olink targetdoc="asrefman" targetptr="enable-1">enable(1)</olink>, <olink targetdoc="asrefman" targetptr="disable-1">disable(1)</olink>, <olink targetdoc="asrefman" targetptr="list-components-1">list-components(1)</olink></para>
</refsect1>
</refentry>
<?Pub *0000004606 0>
