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 ?
Sorry,
ApplicationException works fine for me. I had another error.