Re: Tomcat - Injection: No such property

2008-04-02 Thread ebaxt
Thank you Kenneth! I have tried to set the properties you talked about, but I don't really know how to configure it to lookup Tomcat's JNDI context. I have tried this with no luck: Properties p = new Properties(); p.put(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client

Tomcat - Injection: No such property

2008-03-29 Thread ebaxt
I'm trying to run my application with Tomcat+openEJB, but I can't figure out why the EntityManager isn't injected correctly into the EAO sessionbean. My war file is packed with the ejb.jar in \WEB-INF\lib. The client is able to lookup the facade, but when the facade delegates the EntityManager a

Re: Transaction when testing CRUD on facade

2008-03-29 Thread ebaxt
e > > -David > > > On Mar 28, 2008, at 8:24 AM, ebaxt wrote: >> >> Hi. >> >> I'm new to openEJB and EJB3 so please forgive me if this is a stupid >> question. >> >> Say I want to write a unitTest to test some CRUD methods on a

Transaction when testing CRUD on facade

2008-03-28 Thread ebaxt
Hi. I'm new to openEJB and EJB3 so please forgive me if this is a stupid question. Say I want to write a unitTest to test some CRUD methods on a facade. I have a Session Bean with a method: public X createNewX(String name) { ... creates newX xxEAO.create(newX); return newX; } The xxEAO is anot