Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread Marcin Kwapisz
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, that Toplink does not persists entities at all. With OpenJ

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, th

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-04 Thread Martin Vysny
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 > > org.apache.openejb.client.LocalInitialContextFactory in JNDI > > InitialContext)

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 org.apache.openejb.client.LocalInitialContextFa

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: value="buildSchema(ForeignKeys=true)"/> In Hibernate it's: -David

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 6:51 PM, David Blevins wrote: Marcin, Do you happen to know what the TopLink property is for automatically creating all the required tables? In OpenJPA it's: value="buildSchema(ForeignKeys=true)"/> In Hibernate it's: Got it (for EclipseLink anyway):