Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Re: Two OpenJPA Applications in the same container

Miłosz Tylenda

2010-03-08

Replies: Find Java Web Hosting

Author LoginPost Reply
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:@(protected)" />
>   <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.
>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.