Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 2:49 AM, Marcin Kwapisz wrote: Hi, Configuration: OpenEJB 3.0, ToplinkEssentials 2.1, Maven2, JUnit 4, Derby 10.2.2 I have modified that example - http://openejb.apache.org/3.0/testing-transactions-example.html to use Toplink as persistence provider. The problem is,

RE: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread Marcin Kwapisz
It may be that TopLink doesn't know how to find our TransactionManager. OpenJPA finds it automatically by calling org.apache.openejb.OpenEJB.getTransactionManager(). For Hibernate, there's the TransactionManagerLookup which can be configured. Do you know if there's anything similar in

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 5:45 AM, Marcin Kwapisz wrote: It may be that TopLink doesn't know how to find our TransactionManager. OpenJPA finds it automatically by calling org.apache.openejb.OpenEJB.getTransactionManager(). For Hibernate, there's the TransactionManagerLookup which can be configured.

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 5:41 AM, Martin Vysny wrote: On Sat, 2008-08-02 at 15:23 -0700, David Blevins wrote: On Jul 30, 2008, at 12:34 AM, Martin Vysny wrote: Hello, currently we are starting OpenEJB as an embedded service (by performing a lookup of

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
Marcin, Do you happen to know what the TopLink property is for automatically creating all the required tables? In OpenJPA it's: property name=openjpa.jdbc.SynchronizeMappings value=buildSchema(ForeignKeys=true)/ In Hibernate it's: property name=hibernate.hbm2ddl.auto