In EJBs, we have 2 type of exceptions are there
1) System Exception
2)
EJB Exception
Transaction {
BusinessMethod1();
BusinessMethod2();
BusinessMethod3();
}
While performing above transaction, if any exception has happend
1) If Exception is System Exception:
Then Container will come into picture, rollback the data.
2) If Exception is EJB Exception:
Then developer will handle that the exception.
In your case.
Inside Session Bean A Business Method, user calling the Session Bean B Business Method.
Session Bean B business Method throws Exception, so that Session Bean A business method not handle the exception, it is ejb exception. User should take care while handling these excepions.