[jboss-cvs] JBossAS SVN: r68025 - projects/microcontainer/trunk/docs/User_Guide/src/main/docbook.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 7 06:09:50 EST 2007
Author: newtonm
Date: 2007-12-07 06:09:50 -0500 (Fri, 07 Dec 2007)
New Revision: 68025
Modified:
projects/microcontainer/trunk/docs/User_Guide/src/main/docbook/User_Guide.xml
Log:
Added advice on how to run the pojoDevelopment examples.
Modified: projects/microcontainer/trunk/docs/User_Guide/src/main/docbook/User_Guide.xml
===================================================================
--- projects/microcontainer/trunk/docs/User_Guide/src/main/docbook/User_Guide.xml 2007-12-07 10:55:59 UTC (rev 68024)
+++ projects/microcontainer/trunk/docs/User_Guide/src/main/docbook/User_Guide.xml 2007-12-07 11:09:50 UTC (rev 68025)
@@ -1039,13 +1039,16 @@
}
</programlisting>
<para>The bootstrap() method also includes code to automatically scan the classpath for files called jboss-beans.xml (the value of StandaloneKernelConstants.DEPLOYMENT_XML_NAME) that may or may not reside in a META-INF directory. If any such files are found then their URLs are passed to the BasicXMLDeployer to deploy any beans declared inside. In our examples we place a jboss-beans.xml file into the META-INF directory of our <exampleName>-1.0.0.jar so that it can be found in this way.</para>
- <para>The sequence of events that occurs when running each example is therefore as follows:</para>
+ <important>
+ <para>To run any of the examples simply <command>cd</command> to the relevant <code>target/<exampleName>-dist.dir</code> directory and execute the JAR file using the <command>java -jar <exampleName>-1.0.0.jar</command> command, replacing <exampleName> with the name of the example you are running, .e.g <command>java -jar constructor-1.0.0.jar</command></para>
+ </important>
+ <para>Running an example causes the following sequence of events to occur:</para>
<orderedlist>
<listitem>
- <para>The <exampleName>-1.0.0.jar is executed using the <command>java -jar <exampleName>-1.0.0.jar</command> command, replacing <exampleName> with the name of the example you are running, .e.g <command>java -jar constructor-1.0.0.jar</command></para>
+ <para>The <exampleName>-1.0.0.jar is executed. </para>
</listitem>
<listitem>
- <para>The StandaloneBootstrap class defined in the Main-Class attribute of the META-INF/MANIFEST.MF file is run which bootstraps the microcontainer and searches the classpath for files called jboss-beans.xml.</para>
+ <para>The StandaloneBootstrap class defined in the Main-Class attribute of the META-INF/MANIFEST.MF file within the JAR is run which bootstraps the microcontainer and searches the classpath for files called jboss-beans.xml.</para>
</listitem>
<listitem>
<para>The META-INF/jboss-beans.xml file in the <exampleName>-1.0.0.jar is found and the beans within it are deployed.</para>
More information about the jboss-cvs-commits
mailing list