geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tomasz Mazan <win...@wp.pl>
Subject Re: Two phase commit - JPA + JMS
Date Wed, 05 Sep 2007 12:44:50 GMT
I've moved resourceadapter configuration to independent deployment plan 
and deploy DatabasePools - successfully.
persistence.xml

<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
    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="MyDB" transaction-type="JTA">
        
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
        <jta-data-source>MyXAPool</jta-data-source>
          <non-jta-data-source>MyPool</non-jta-data-source>
        <class>myapp.Customer</class>
        <properties>
            <property name="openjpa.Sequence" 
value="class-table(Table=_SEQ_GENERATOR, UseAliases=true)"/>
             <property name="openjpa.jdbc.SynchronizeMappings" 
value="buildSchema(ForeignKeys=true)" />
             <property name="openjpa.jdbc.DBDictionary" value="postgres"/>
             <property name="openjpa.Multithreaded" value="true" />
            <property name="openjpa.TransactionMode" value="managed" />
            <property name="openjpa.NontransactionalRead" value="true" />
            <property name="openjpa.RestoreState" value="all" />        
            <property name="openjpa.Optimistic" value="false"/>   
        </properties>
    </persistence-unit>
 
</persistence>

And my application works :))
Thanks for your help

Beniamin

Mime
View raw message