From seam-commits at lists.jboss.org Wed Nov 5 17:08:40 2008 Content-Type: multipart/mixed; boundary="===============5539039570658001869==" MIME-Version: 1.0 From: seam-commits at lists.jboss.org To: seam-commits at lists.jboss.org Subject: [seam-commits] Seam SVN: r9510 - trunk/doc/Seam_Reference_Guide/en-US. Date: Wed, 05 Nov 2008 17:08:40 -0500 Message-ID: --===============5539039570658001869== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: jbalunas(a)redhat.com Date: 2008-11-05 17:08:40 -0500 (Wed, 05 Nov 2008) New Revision: 9510 Modified: trunk/doc/Seam_Reference_Guide/en-US/Glassfish.xml Log: Updated Glassfish chapter. Modified: trunk/doc/Seam_Reference_Guide/en-US/Glassfish.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/doc/Seam_Reference_Guide/en-US/Glassfish.xml 2008-11-05 17:59:39 = UTC (rev 9509) +++ trunk/doc/Seam_Reference_Guide/en-US/Glassfish.xml 2008-11-05 22:08:40 = UTC (rev 9510) @@ -70,12 +70,13 @@ $ bin/asadmin start-domain domain1 = - The web adminstration console is available at http://= localhost:4848/. + The web administration console is available at http:/= /localhost:4848/. You can access the web admin console with the default username = (admin) and password (adminadmin). - Alternatively, you could copy EAR/WAR file to = - glassfish/domains/domain1/autodeploy to dep= loy = - it. + We will be using the the admin console to deploy our examples.= = + You can also copy EAR/WAR files to the + glassfish/domains/domain1/autodeploy direct= ory = + to deploy them, although we are not going to cover that. = @@ -95,7 +96,23 @@ designed to run on GlassFish. It is located in $SEAM_DIST/examples/jee5/booking. + = +
+ Building the <literal>jee5/booking</literal> example</titl= e> = + <para> + To build the example, simply execute the default = + <literal>ant</literal> target: + </para> + = + <programlisting>$ ant</programlisting> + = + <para> + in the <literal>examples/jee5/booking</literal> directory. Th= is = + will create the <literal>dist</literal> and = + <literal>exploded-archives</literal> directories. + </para> + </section> <section id=3D"jee5-glassfish-deploy"> <title>Deploying the application to GlassFish = @@ -187,7 +204,8 @@ = This is very similar to the jee5 example at - . + except that this is= a + war and not an ear. = @@ -245,7 +263,7 @@
= -
+
What's different for GlassFish v2 UR2 = @@ -291,9 +309,7 @@ quickly get an application up and running, and provides a foundat= ion to add your own functionality. Out of box seam-gen will produce applications configured to run on JBoss AS. These instruc= tions = - will show the steps needed to get it to run on GlassFish. As stat= ed = - above in it's easy to= deploy = - either an EJB3 or a Seam POJOs application on Glassfish. + will show the steps needed to get it to run on GlassFish. = =
@@ -419,9 +435,9 @@ - Add or change the properties below. These are - described in detail at = - : + Replace all of the properties with the follo= wing. + The key differences are briefly described in = + : @@ -499,7 +515,7 @@ Alter the jndi-pattern to - java:comp/env/seamgen_example/#{ejb= Name}/local + java:comp/env/seamgen_example/#{ejb= Name} @@ -604,7 +620,6 @@ This application has similar requirements as the jee5/booking example. - @@ -614,30 +629,12 @@ = ]]> - - Websphere looks for the drools /security.drl= - file in the root of the war file i= nstead of the root of the - seamgen_example.jar so we need to = have - the build.xml move it to the corre= ct = - location at build time. The following must be added a= t the - top of the ]]> - target. - - - - - - = -]]> - - - - We need to get the GlassFishDerbyDialect.cla= ss into our application jar. To do that find the jar - task and modify the top of it so that it looks like t= his: + task and add the GlassFishDerbyDialect.class= + line as shown below: = @@ -650,156 +647,65 @@ ...]]> - - Next we need to get the jboss-seam.jar - into the base of the EAR file. For = - deployment GlassFish requires this jar to be in both = the - /lib directory and at the base of = the - EAR. You must add the following to= the - archive task: + Now we need to get extra jars into the ear + file. Look for the = + ]]><= /literal> + section of the ear target. Add the= following + to the child = + ]]> + element. - - - -]]> - - - So that the whole archive task loo= ks = - like: - - - - = - - - - - - - - - - - -]]> - - - Now we need to get extra jars into the build= .xml. - Look for the ]]> - section of the task below. Add the new includes at the - bottom of the fileset. - - - - - - - - = - - - - - - - - - - - - = - - - - - - - - - -]]> - + = Add Hibernate dependencies - = - - - - - -]]> + + + + + +]]> - - - Add JSF dependencies. You will need to copy the - el-ri.jar from the - $SEAM_DIST/lib directory. - - - = - - - -]]> - - - Add third party dependencies. - - - = - - - - - -]]> + + = + + + + + +]]> = You should end up with something like: = - - - - - - - - - - + + + = - - - - - - - - - - - - - + + + + + + + = - - - - - - - - - + + + + + + + + ]]> --===============5539039570658001869==--