Re: Problem with exceptions thrown by stateful session beans ?

2008-11-24 Thread Dain Sundstrom
BTW this annotation is only required on exceptions that extend java.lang.RuntimeException. Normal checked exceptions are considered ApplicationExceptions by default. -dain On Nov 21, 2008, at 6:57 AM, Olivier THIERRY wrote: That's clear to me now. I added @javax.ejb.ApplicationException

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: 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

Problem with exceptions thrown by stateful session beans ?

2008-11-19 Thread Olivier THIERRY
Hi, I have a project with EJB3 Seam components. I write unit tests that will run on OpenEJB, but I encounter a problem I can't find it is a Seam or OpenEJB one. I wrote a Seam component with CONVERSATION scope, i.e. a stateful session bean. I wrote the following unit test for this component :