[jboss-cvs] jboss-seam/examples/jpa/resources ...

Gavin King gavin.king at jboss.com
Mon Jun 25 12:19:40 EDT 2007


  User: gavin   
  Date: 07/06/25 12:19:40

  Modified:    examples/jpa/resources   components.xml persistence.xml
  Log:
  dont require jta
  
  Revision  Changes    Path
  1.13      +3 -2      jboss-seam/examples/jpa/resources/components.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: components.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/components.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -r1.12 -r1.13
  --- components.xml	21 Jun 2007 22:17:04 -0000	1.12
  +++ components.xml	25 Jun 2007 16:19:40 -0000	1.13
  @@ -2,6 +2,7 @@
   <components xmlns="http://jboss.com/products/seam/components"
               xmlns:core="http://jboss.com/products/seam/core"
               xmlns:persistence="http://jboss.com/products/seam/persistence"
  +            xmlns:transaction="http://jboss.com/products/seam/transaction"
               xmlns:security="http://jboss.com/products/seam/security"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation=
  @@ -10,12 +11,12 @@
                    http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.3.xsd
                    http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.3.xsd">
   
  -    <core:init debug="false"/>    
  -
       <core:manager conversation-timeout="120000" 
                     concurrent-request-timeout="500"
                     conversation-id-parameter="cid"/>
                     
  +    <transaction:entity-transaction entity-manager="#{em}"/>
  +                  
       <persistence:entity-manager-factory name="bookingDatabase"/>
       
       <persistence:managed-persistence-context name="em"
  
  
  
  1.3       +1 -1      jboss-seam/examples/jpa/resources/persistence.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: persistence.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/resources/persistence.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- persistence.xml	3 Dec 2006 04:18:53 -0000	1.2
  +++ persistence.xml	25 Jun 2007 16:19:40 -0000	1.3
  @@ -3,7 +3,7 @@
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" 
                version="1.0">
  -   <persistence-unit name="bookingDatabase" transaction-type="JTA">
  +   <persistence-unit name="bookingDatabase" transaction-type="RESOURCE_LOCAL">
         <provider>org.hibernate.ejb.HibernatePersistence</provider>
         <jta-data-source>java:/DefaultDS</jta-data-source>
         <properties>
  
  
  



More information about the jboss-cvs-commits mailing list