geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Hogstrom <m...@hogstrom.org>
Subject Re: Two phase commit - JPA + JMS
Date Wed, 05 Sep 2007 12:52:28 GMT
Great news !!!

So the updated RARs work correctly ?  (or at least the XA one)

Let us know if you have other issues and good luck.


On Sep 5, 2007, at 8:44 AM, Tomasz Mazan wrote:

> 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