Hi! Somehow this doesn't work.
If I startup OpenEJB like the examples do: > Properties p = new Properties(); > p.put(Context.INITIAL_CONTEXT_FACTORY, > "org.apache.openejb.client.LocalInitialContextFactory"); > Context context = new InitialContext(p); then no JtaEntityManager gets initialised. Do I have to add additional properties? persistence.xml and all other things should be in place. The source is currently only in my git repo: http://ns1.backwork.net/git/index.php?p=openwebbeans.git txs and LieGrue, strub --- David Blevins <[email protected]> schrieb am Mi, 1.4.2009: > Von: David Blevins <[email protected]> > Betreff: Re: using OpenEJB in JUnit tests > An: [email protected] > Datum: Mittwoch, 1. April 2009, 20:15 > > On Apr 1, 2009, at 8:47 AM, [email protected] > wrote: > > > > > Hi! > > > > I wrote code to integrate OpenEJB into OpenWebBeans to > lookup the transactional EntityManager via OpenEJB. This > works so far in Geronimo but I also like to JUnit test it > and need to startup OpenEJB in my Testcase. > > > > How can I do this best? > > Is there a sample out there how to easily start an > embedded OpenEJB test container? > > Sure check out: http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples > > -David > >
