here is the persistence.xml

<persistence xmlns="http://java.sun.com/xml/ns/persistence";
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
            version="1.0">
<persistence-unit name="dwtest" transaction-type="RESOURCE_LOCAL">


<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>

<class>tutorial.ejb.Animal</class>

   <class>tutorial.ejb.Dog</class>
       <class>ejb.jpa.test.Customer</class>
       <class>ejb.jpa.test.District</class>
   <class>ejb.jpa.test.Warehouse</class>
   <class>ejb.jpa.test.History</class>
    <class>ejb.jpa.test.Item</class>
    <class>ejb.jpa.test.Neworders</class>
    <class>ejb.jpa.test.Orderline</class>
    <class>ejb.jpa.test.Orders</class>
    <class>ejb.jpa.test.Stock</class>
       <properties>

             <property name="openjpa.ConnectionDriverName"
                     value="org.apache.commons.dbcp.BasicDataSource"/>
           <property name="openjpa.ConnectionProperties"
                     value="DriverClassName=com.ibm.db2.jcc.DB2Driver
,Url=jdbc:db2:testdb"/>



     <property name="openjpa.SavepointManager" value="jdbc"/>
           <property name="openjpa.jdbc.SynchronizeMappings"
                     value="buildSchema(ForeignKeys=true)"/>

          <property name="openjpa.Log" value="DefaultLevel=WARN,
Runtime=INFO, Tool=INFO,SQL=TRACE"/>

       </properties>
   </persistence-unit>
</persistence>
ritika

On 1/16/07, Patrick Linskey <[EMAIL PROTECTED]> wrote:

> Any input is this a bug or do I need to set auto-commit to
> false.If so how
> do I do that?

Normally, OpenJPA should set autocommit to false automatically. This
will not happen in certain situations (such as when OpenJPA is used in a
JTA context). Can you post your full configuration file so we can see
what your environment looks like?

-Patrick
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to