In order to get rid of deadlocks in H2, you need to grab latest ODE
snapshot and add
ode.acquireTransactionLocks=true
to ode-axis2.properties.
It's needed, because H2 uses poor locking mechanism.
I tried H2 with Hibernate and it worked well.

On Wed, Jul 7, 2010 at 8:27 PM, Les Spivey <[email protected]> wrote:
> The Ode documentation here
> http://ode.apache.org/ode-jbi-and-axis2-properties-overview.html shows
> how to setup an internal database other than Derby using
> "ode-axis2.db.mode=INTERNAL".  Has anyone done this with H2?  I've tried
> and it appears to work until there is any kind of load then I get
> "org.apache.openjpa.persistence.PersistenceException: Deadlock detected"
> exceptions.  ode-axis2.threads.pool.size is set to 200.
>
>
>
> I've seen examples with H2 as an external database using Hibernate but I
> cannot use Hibernate because of the license.  Also, I'm using Jetty and
> not Tomcat.  Any suggestions?
>
>
>
> Thanks, Les.
>
>

-- 
Regards,
Rafał Rusin
http://rrusin.blogspot.com

Reply via email to