[jboss-cvs] JBossAS SVN: r105542 - projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 1 23:53:15 EDT 2010


Author: misty at redhat.com
Date: 2010-06-01 23:53:14 -0400 (Tue, 01 Jun 2010)
New Revision: 105542

Modified:
   projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Glassfish.xml
Log:
JBPAPP-4387

Modified: projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Glassfish.xml
===================================================================
--- projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Glassfish.xml	2010-06-02 03:47:22 UTC (rev 105541)
+++ projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Glassfish.xml	2010-06-02 03:53:14 UTC (rev 105542)
@@ -21,14 +21,14 @@
 				Download GlassFish and install it like so:
 			</para>
 			 
-<programlisting>$ java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar
-</programlisting>
+<command>$ java -Xmx256m -jar glassfish-installer-v2ur2-b04-linux.jar</command>
+
 			 <para>
 				Set up GlassFish with the following command:
 			</para>
 			 
-<programlisting>$ cd glassfish; ant -f setup.xml
-</programlisting>
+<command>$ cd glassfish; ant -f setup.xml</command>
+
 			 <para>
 				This creates a domain named <literal>domain1</literal>.
 			</para>
@@ -36,8 +36,7 @@
 				Next, start the embedded JavaDB server:
 			</para>
 			 
-<programlisting>$ bin/asadmin start-database
-</programlisting>
+<command>$ bin/asadmin start-database</command>
 			 <note>
 				<para>
 					JavaDB is an embedded database that is included with GlassFish, just as HSQLDB is included in JBoss AS.
@@ -47,8 +46,8 @@
 				Next, start the GlassFish server:
 			</para>
 			 
-<programlisting>$ bin/asadmin start-domain domain1
-</programlisting>
+<command>$ bin/asadmin start-domain domain1</command>
+
 			 <para>
 				The web administration console is available at <literal>http://localhost:4848/</literal>. You can access the web admin console with the default username and password (<literal>admin</literal> and <literal>adminadmin</literal> respectively). This chapter shows you how to deploy the example applications in the web admin console. Alternatively, you can deploy applications by copying <filename>EAR</filename> or <filename>WAR</filename> files to the <literal>glassfish/domains/domain1/autodeploy</literal> directory.
 			</para>
@@ -56,8 +55,8 @@
 				You can stop the server and database with the following command:
 			</para>
 			 
-<programlisting>$ bin/asadmin stop-domain domain1; bin/asadmin stop-database
-</programlisting>
+<command>$ bin/asadmin stop-domain domain1; bin/asadmin stop-database</command>
+
 		</section>
 		
 	</section>
@@ -73,8 +72,8 @@
 				To build the example, simply execute the default <literal>ant</literal> target from the <literal>examples/jee5/booking</literal> directory:
 			</para>
 			 
-<programlisting>$ ant
-</programlisting>
+<command>$ ant</command>
+
 			 <para>
 				This creates the <literal>dist</literal> and <literal>exploded-archives</literal> directories.
 			</para>
@@ -141,8 +140,8 @@
 				To build the example, use the <literal>glassfish</literal> target with <application>Ant</application>:
 			</para>
 			 
-<programlisting>$ ant glassfish
-</programlisting>
+<command>$ ant glassfish</command>
+
 			 <para>
 				This creates container-specific <literal>dist-glassfish</literal> and <literal>exploded-archives-glassfish</literal> directories.
 			</para>
@@ -156,11 +155,8 @@
 			 <itemizedlist>
 				<listitem>
 					<para>
-						Log in to the administration console:
+						Log in to the administration console at <ulink url="http://localhost:4848" />
 					</para>
-					 
-<programlisting>http://localhost:4848
-</programlisting>
 				</listitem>
 				 <listitem>
 					<para>
@@ -241,8 +237,8 @@
 				First, run <literal>./seam setup</literal> in the base directory of your Seam distribution to tell <application>seam-gen</application> about your project. The paths in the following example can be altered to fit your own environment:
 			</para>
 			 
-<programlisting><![CDATA[
-$ ./seam setup
+<screen>
+$ <command>./seam setup</command>
 Buildfile: build.xml
 
 init:
@@ -319,8 +315,8 @@
 [echo] Type 'seam create-project' to create the new project
 
 BUILD SUCCESSFUL
-Total time: 4 minutes 5 seconds]]>
-</programlisting>
+Total time: 4 minutes 5 seconds
+</screen>
 			 <para>
 				Type <command>./seam new-project</command> to create your project and then <command>cd /projects/seamgen_example</command> to view the newly created structure.
 			</para>
@@ -348,7 +344,7 @@
 										Replace all properties with the following: (The differences are described in <xref linkend="glassfish_jpa_diff" />.)
 									</para>
 									 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <property name="hibernate.dialect" value="GlassfishDerbyDialect"/> 
 <property name="hibernate.hbm2ddl.auto" value="update"/> 
 <property name="hibernate.show_sql" value="true"/> 
@@ -374,11 +370,11 @@
 								Copy this class from the <literal>jpa</literal> example into the <literal>seamgen_example/resources</literal> directory for database support, like so:
 							</para>
 							 
-<programlisting>
+<command>
 $ cp \ 
 $SEAM_DIST/examples/jpa/resources-glassfish/WEB-INF/classes/GlassfishDerbyDialect.class \ 
 ./resources
-</programlisting>
+</command>
 						</listitem>
 					</varlistentry>
 					 <varlistentry>
@@ -421,7 +417,7 @@
 								Add EJB references to <filename>web.xml</filename>. Remember that these references also require an empty <literal>local-home</literal> element to remain compatible with a JBoss AS 4.x deployment.
 							</para>
 							 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <ejb-local-ref>              
   <ejb-ref-name>seamgen_example/AuthenticatorAction</ejb-ref-name>                
   <ejb-ref-type>Session</ejb-ref-type>     
@@ -439,7 +435,7 @@
 								If you deploy to JBoss AS 4.x, you will also need to define local JNDI names for each of these references in <filename>jboss-web.xml</filename>, as shown in the following example. (This step is not required for GlassFish-only deployment, or for JBoss AS 5.)
 							</para>
 							 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <ejb-local-ref>
   <ejb-ref-name>seamgen_example/AuthenticatorAction</ejb-ref-name>
   <local-jndi-name>AuthenticatorAction</local-jndi-name>
@@ -479,17 +475,17 @@
 							</listitem>
 						</itemizedlist>
 						 
-<programlisting role="JAVA"><![CDATA[
+<programlisting language="Java" role="JAVA">
 @Name("authenticator") 
 @Stateless 
-public class AuthenticatorAction implements Authenticator { }]]>
+public class AuthenticatorAction implements Authenticator { }
 </programlisting>
 						 
-<programlisting role="JAVA"><![CDATA[
+<programlisting language="Java" role="JAVA">
 @Local 
 public interface Authenticator { 
   public boolean authenticate(); 
-}]]>
+}
 </programlisting>
 					</listitem>
 					 <listitem>
@@ -511,7 +507,7 @@
 							Change the default target to "<literal>archive</literal>". (We will not cover automatic deployment to GlassFish.)
 						</para>
 						 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <project name="seamgen_example" default="archive" basedir=".">]]>
 </programlisting>
 					</listitem>
@@ -520,7 +516,7 @@
 							<filename>GlassfishDerbyDialect.class</filename> must be included in our application <filename>JAR</filename> —add the <filename>GlassfishDerbyDialect.class</filename> line like so:
 						</para>
 						 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <target name="jar" depends="compile,copyclasses" 
         description="Build the distribution .jar file"> 
 <copy todir="${jar.dir}"> 
@@ -540,7 +536,7 @@
 									Add Hibernate dependencies
 								</para>
 								 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <!-- Hibernate and deps --> 
 <include name="hibernate.jar"/> 
 <include name="hibernate-commons-annotations.jar"/> 
@@ -555,7 +551,7 @@
 									Add third party dependencies.
 								</para>
 								 
-<programlisting role="XML"><![CDATA[
+<programlisting language="XML" role="XML"><![CDATA[
 <!-- 3rd party and supporting jars --> 
 <include name="javassist.jar"/> 
 <include name="dom4j.jar"/> 
@@ -572,7 +568,7 @@
 							You should end up with something like:
 						</para>
 						 
-<programlisting role="XML"><![CDATA[
+<programlisting languge="XML" role="XML"><![CDATA[
 <fileset dir="${lib.dir}"> 
   <includesfile name="deployed-jars-ear.list" /> 
   <!-- Hibernate and deps --> 




More information about the jboss-cvs-commits mailing list