openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MiƂosz Tylenda <mtyle...@o2.pl>
Subject Re: Two OpenJPA Applications in the same container
Date Mon, 08 Mar 2010 20:13:03 GMT
Hi,

Does anything change if you use the datasource but remove the following property?

<property name="openjpa.TransactionMode" value="managed"/>

Cheers,
Milosz

> 
> A "work-around" of sorts seems to be to not use a datasource. But that's bad
> practice, I can get away with it because my application doesn't take heavy
> traffic. But if I don't use a jta datasource and just connect to the
> database directly then it works fine.
> 
> So
> 
>     <property name="openjpa.ConnectionURL"
> 				value="jdbc:oracle:thin:@server:1530:schema" />
>     <property name="openjpa.ConnectionDriverName"
> value="oracle.jdbc.driver.OracleDriver" />
>     <property name="openjpa.ConnectionUserName" value="user" />
>     <property name="openjpa.ConnectionPassword" value="pass" />
> </properties>
> 
> instead of 
> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
> <properties>
>       <property name="openjpa.DataCache" value="true"/>
>       <property name="openjpa.RemoteCommitProvider" value="sjvm"/>
>       <property name="openjpa.Log" value="DefaultLevel=WARN, Tool=INFO"/>
>       <property name="openjpa.TransactionMode" value="managed"/>
> </properties>
> -- 
> View this message in context: http://n2.nabble.com/Two-OpenJPA-Applications-in-the-same-container-tp4686242p4693652.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
> 

Mime
View raw message