Looks like OpenJPA is trying to synchronize your database schema with its
own internal model... which results in DDL statements and those are not
transactional so can't run within a transaction.

I would try either,
1) initialize/synchronize your database schema before starting Ode
2) disable schema synchronization in OpenJPA
http://openjpa.apache.org/docs/latest/manual/manual.html#openjpa.jdbc.SynchronizeMappings

alex

On 2/9/08, xenHalfLife <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> I am still trying to configure ODE in XA environment. Next example is
> based on
> MockBpelServer class found in org.apache.ode.bpel.runtime package. That
> example
> demonstrates how to manage transactions using TransactionManager
> interface.
>
> Only changes I have made to MockBpelServer are the injection of DataSource
> and
> TransactionManager objects by me. These 2 objects are created externally,
> and
> set to MockBpelServer for further usage. All other code of MockBpelServer
> is
> untouched, including 2 crucial methods: deploy and invoke.
>
> MySql is used as database and Bitrnoix as JTA transaction manager. I have
> tested
> these two with ActiveMq JMS broker, and they function correctly.
>
> Thanks in advance.
>
> Main method contains following code, and it tries only to transactionally
> invoke
> ODE by using JTA API (it is not trying to invoke ODE and some other XA
> resource,
> that would be next step when this is working)
>
>

Reply via email to