Re: EntityManager Propagation Problem under 3.1

2008-11-21 Thread JimOR
David Blevins wrote: > > Hi Jim, > > I'm not sure what would cause this issue. We should try isolating > things so we can figure out where to look. First thing would be either: > >a. swap out the OpenJPA version in your OpenEJB 3.1 install with > OpenJPA 1.0.1, or >b. take your w

EJB with JPA odd problem.

2008-11-21 Thread ericp56
Hello, I have a simple JPA EJB unit test that is failing with (bolded the root error below ): ScrapEjbTest com.twcable.ivr.test.ScrapEjbTest test1(com.twcable.ivr.test.ScrapEjbTest) javax.ejb.EJBException: The bean encountered a non-application exception; nested exception is: org.

Re: Get current SessionContext

2008-11-21 Thread Martin Vysny
On Thu, 2008-11-20 at 18:17 +0100, Martin Vysny wrote: > Hi guys, > perhaps a strange question: is there an OpenEJB-specific way to detect > if my code is currently being executed in a stateless session bean > context (and get its SessionContext)? In pure J2EE this is not possible > (unless you r

Re: Problem with exceptions thrown by stateful session beans ?

2008-11-21 Thread Olivier THIERRY
That's clear to me now. I added @javax.ejb.ApplicationException annotation in my exception class and it works perfect now. It's not the first time I ask a question on this list, and I always have excellent answers. Thanks a lot for the time you took to explain this to me. Olivier 2008/11/21 Manu

Re: How to use annotation in client application?

2008-11-21 Thread Manu George
Hi Paul, I am not sure about this. If you look into the iTests it seems to have something similar in the RemoteiTests. I think some of the remote clients are using @EJB. If anyone knows how to configure this, please advise. Meanwhile let me try to figure out how this works Regards Manu On Wed,

Re: Problem with exceptions thrown by stateful session beans ?

2008-11-21 Thread Manu George
Hi Olivier, Whenever a system exception is thrown by any of the session bean's business methods the bean instance is discarded. In the case of stateless session beans each method call goes to an instance in the pool. It need not be the same instance. So even if the instance is discarded th