0 Replies Latest reply on Mar 27, 2007 9:35 AM by jc7442

    Stateful beans and Exception

    jc7442

      I use a stateful session bean.

      @Stateful
      public class MyStatefullImpl implements MyStatefull{
      
       public void applyFilter(...) throws MyException {
      ...
       }


      MyException is managed properly in my source code and is declared in the API. Consequently, when this exception is thrown, my stateful bean is still consistent. Unfortunately it looks like if an excetion go through a method of a stateful bean, the stateful bean can not be used (on next invocation of one of its method I got an javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: a2a3m6o-w94gp-ezsdveoz-1-ezsdvf3b-3)

      Is it possible to implement that an exception does not kill the session bean ? (something similar for example with the @ApplicationException for JTA transactions)