1 Reply Latest reply on Sep 3, 2007 9:42 AM by J-C jc

    Stateful && Exception

    J-C jc Apprentice

      I implement a stateful EJB3. Some of the methods of the session bean return exception. By default, when an exception is thrown in a stateful session bean, bean is destroyed.

      In my case, exception are declared in the API of the method. I'd like that some excepiotn does not destroy the stateful session bean. (a kind of ApplicationException annotation as it exists for EntityManager)

      How can I do that ?