[seam-commits] Seam SVN: r10012 - in trunk/examples/jee5: booking/resources/META-INF and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Feb 5 11:10:24 EST 2009


Author: norman.richards at jboss.com
Date: 2009-02-05 11:10:23 -0500 (Thu, 05 Feb 2009)
New Revision: 10012

Modified:
   trunk/examples/jee5/booking/resources/META-INF/persistence.xml
   trunk/examples/jee5/readme.txt
Log:
JBSEAM-3820

Modified: trunk/examples/jee5/booking/resources/META-INF/persistence.xml
===================================================================
--- trunk/examples/jee5/booking/resources/META-INF/persistence.xml	2009-02-05 14:11:37 UTC (rev 10011)
+++ trunk/examples/jee5/booking/resources/META-INF/persistence.xml	2009-02-05 16:10:23 UTC (rev 10012)
@@ -5,8 +5,11 @@
              version="1.0">
    <persistence-unit name="bookingDatabase">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
-      <!-- Change to java:/DefaultDS when deploying to JBoss AS 5 -->
+      <!-- use this data source name for Glassfish -->
+      <!--
       <jta-data-source>jdbc/__default</jta-data-source>
+      -->
+      <jta-data-source>java:/DefaultDS</jta-data-source>
       <properties>
          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
          <property name="hibernate.show_sql" value="true"/>

Modified: trunk/examples/jee5/readme.txt
===================================================================
--- trunk/examples/jee5/readme.txt	2009-02-05 14:11:37 UTC (rev 10011)
+++ trunk/examples/jee5/readme.txt	2009-02-05 16:10:23 UTC (rev 10012)
@@ -10,29 +10,34 @@
 GlassFish V2 
 ------------
 
-1.  Build the demo app by running ANT. The build target is 
-    "dist/jboss-seam-jee5.ear"
+1. Modify the following files in the project.
 
-2.  Download GlassFish V2 Final Build
+   * resources/META-INF/persistence.xml: Change the jta-persistence-provider to the commented
+     out Glassfish property
 
-3.  Install it: java -Xmx256m -jar glassfish-installer-xxx.jar
+2.  Build the demo app by running Ant. The build target is 
+    "dist/jboss-seam-jee5.ear" 
 
-4.  Setup glassfish: cd glassfish; ant -f setup.xml;
+3.  Download GlassFish V2 Final Build
 
-5.  Start the GlassFish server: $GLASSFISH_HOME/bin/asadmin start-domain domain1
+4.  Install it: java -Xmx256m -jar glassfish-installer-xxx.jar
 
-6.  Start the embedded JavaDB: $GLASSFISH_HOME/bin/asadmin start-database
+5.  Setup glassfish: cd glassfish; ant -f setup.xml;
 
-7.  Load the admin console: http://localhost:4848/
+6.  Start the GlassFish server: $GLASSFISH_HOME/bin/asadmin start-domain domain1
 
-8.  Login using username/password: admin / adminadmin
+7.  Start the embedded JavaDB: $GLASSFISH_HOME/bin/asadmin start-database
 
-9.  Deploy the "Enterprise Application" in the admin console
+8.  Load the admin console: http://localhost:4848/
+
+9.  Login using username/password: admin / adminadmin
+
+10.  Deploy the "Enterprise Application" in the admin console
     or using the command $GLASSFISH_HOME/bin/asadmin deploy dist/jboss-seam-jee5.ear
 
-10. Checkout the app at: http://localhost:8080/seam-jee5/
+11. Checkout the app at: http://localhost:8080/seam-jee5/
 
-11. Stop the server and database: 
+12. Stop the server and database: 
     $GLASSFISH_HOME/bin/asadmin stop-domain domain1; $GLASSFISH_HOME/bin/asadmin stop-database
 
 
@@ -42,8 +47,7 @@
 1.  Modify the following files in the project.
   
     * build.xml: Un-comment the OC4J-related libraries
-    * resources/META-INF/persistence.xml: Comment out the GlassFish properties 
-      and un-comment the OC4J properties
+    * resources/META-INF/persistence.xml: un-comment the OC4J properties
 
 2.  Build the demo app by running ANT. The build target is 
     "dist/jboss-seam-jee5.ear"




More information about the seam-commits mailing list