jcscoobyrs    2005/09/19 18:15:12

  Modified:    examples/moviefun/src/webapp/META-INF cmp.local-database.xml
                        cmp.global-database.xml
  Log:

  Updated for OPENEJB-58.  Updated Castor support to 0.9.9M2.  Instructions in 
the Jira for working around castor-0.9.9.0.jar not being in Maven.
  
  Revision  Changes    Path
  1.2       +31 -30    
openejb1/examples/moviefun/src/webapp/META-INF/cmp.local-database.xml
  
  Index: cmp.local-database.xml
  ===================================================================
  RCS file: 
/scm/openejb/openejb1/examples/moviefun/src/webapp/META-INF/cmp.local-database.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cmp.local-database.xml    28 Aug 2005 08:55:56 -0000      1.1
  +++ cmp.local-database.xml    19 Sep 2005 22:15:12 -0000      1.2
  @@ -1,35 +1,36 @@
  -<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 
1.0//EN"
  +<!DOCTYPE jdo-conf PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 
1.0//EN"
                              "http://castor.exolab.org/jdo-conf.dtd";>
   
  -
  -
   <!--
  -======================================================
  -Local Transaction Database file for Container-Managed
  -Persistence EntityBeans in the Default CMP Container
  -======================================================
  -
  -This configuration is used for local or unspecified 
  -transaction contexts.  This will be used when the 
  -TransactionManager is not managing the transaction, 
  -such as when the tx attribute is Supports (no client 
  -tx), NotSupported, or Never.
  -
  -Specifies the configuration for obtaining database 
  -connections and the mapping.xml schema which describes
  -how beans map to the database.
  -
  -[The Syntax of this file is defined by Castor JDO]
  -
  +     ======================================================
  +     Local Transaction Database file for Container-Managed
  +     Persistence EntityBeans in the Default CMP Container
  +     ======================================================
  +     
  +     This configuration is used for local or unspecified 
  +     transaction contexts.  This will be used when the 
  +     TransactionManager is not managing the transaction, 
  +     such as when the tx attribute is Supports (no client 
  +     tx), NotSupported, or Never.
  +     
  +     Specifies the configuration for obtaining database 
  +     connections and the mapping.xml schema which describes
  +     how beans map to the database.
  +     
  +     [The Syntax of this file is defined by Castor JDO]
  +     
   -->
  -<database name="Local_TX_Database" engine="instantdb" >
  -
  -    <driver class-name="org.enhydra.instantdb.jdbc.idbDriver"
  -            url="jdbc:idb:META-INF/instantdb.properties">
  -      <param name="user" value="Admin" />
  -      <param name="password" value="pass" />
  -    </driver>
  -
  -    <mapping href="META-INF/cmp.or-mapping.xml" />
  -</database>
  +<jdo-conf>
  +     <database name="Local_TX_Database" engine="instantdb">
   
  +             <driver class-name="org.enhydra.instantdb.jdbc.idbDriver"
  +                     url="jdbc:idb:META-INF/instantdb.properties">
  +                     <param name="user" value="Admin" />
  +                     <param name="password" value="pass" />
  +             </driver>
  +
  +             <mapping href="META-INF/cmp.or-mapping.xml" />
  +     </database>
  +     
  +     <transaction-demarcation mode="local" />
  +</jdo-conf>
  \ No newline at end of file
  
  
  
  1.2       +30 -26    
openejb1/examples/moviefun/src/webapp/META-INF/cmp.global-database.xml
  
  Index: cmp.global-database.xml
  ===================================================================
  RCS file: 
/scm/openejb/openejb1/examples/moviefun/src/webapp/META-INF/cmp.global-database.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- cmp.global-database.xml   28 Aug 2005 08:55:56 -0000      1.1
  +++ cmp.global-database.xml   19 Sep 2005 22:15:12 -0000      1.2
  @@ -1,30 +1,34 @@
  -<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 
1.0//EN"
  +<!DOCTYPE jdo-conf PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 
1.0//EN"
                              "http://castor.exolab.org/jdo-conf.dtd";>
   
  -
   <!--
  -======================================================
  -Global Transaction Database file for Container-Managed
  -Persistence EntityBeans in the Default CMP Container
  -======================================================
  -
  -This configuration is used for global or container 
  -managed transactions.  This will be used when the
  -TransactionManager is managing the transaction, such
  -as when the tx attribute is Supports (client has tx),
  -RequiresNew, Required or Manditory.
  -
  -Specifies the configuration for obtaining database
  -connections and the mapping.xml schema which describes
  -how beans map to the database.
  -
  -[The Syntax of this file is defined by Castor JDO]
  -
  +     ======================================================
  +     Global Transaction Database file for Container-Managed
  +     Persistence EntityBeans in the Default CMP Container
  +     ======================================================
  +     
  +     This configuration is used for global or container 
  +     managed transactions.  This will be used when the
  +     TransactionManager is managing the transaction, such
  +     as when the tx attribute is Supports (client has tx),
  +     RequiresNew, Required or Manditory.
  +     
  +     Specifies the configuration for obtaining database
  +     connections and the mapping.xml schema which describes
  +     how beans map to the database.
  +     
  +     [The Syntax of this file is defined by Castor JDO]
  +     
   -->
  -<database name="Global_TX_Database" engine="instantdb">
  -<!--    <jndi name="java:comp/env/jdbc/moviedb" />-->
  -    <jndi name="java:openejb/connector/Movie Database Connector" />
  -    <mapping href="META-INF/cmp.or-mapping.xml" />
  -</database>
  -
  -
  +<jdo-conf>
  +     <database name="Global_TX_Database" engine="instantdb">
  +             <jndi name="java:openejb/connector/Movie Database Connector" />
  +             <mapping href="META-INF/cmp.or-mapping.xml" />
  +     </database>
  +
  +     <transaction-demarcation mode="global">
  +             <transaction-manager name="jndi">
  +                     <param name="jndiEnc" 
value="java:openejb/TransactionManager" />
  +             </transaction-manager>
  +     </transaction-demarcation>
  +</jdo-conf>
  \ No newline at end of file
  
  
  

Reply via email to