2 Replies Latest reply on Mar 4, 2007 4:19 PM by Jan Lessner

    Self-destroying a stateful session bean

    Jan Lessner Newbie

      Does anybody know if there is a way how a stateful session bean can destroy itself without rolling back the current transaction? The only idea I had was to call the bean's own remove-method - of course not directly but through the proxy by SessionContext.getEJBObject(). Unfortunately this caused the remove-method of a completely new bean instance to be called. So this is no solution.

      Regards,
      Jan