I tried with two @LocalBean , BeanA and BeanB. The
servlet client and the beans are in the same .war file. The EJBTransactionRollbackException is thrown to BeanA, even though BeanA and BeanB are local to each other.
Output:
Warning: A system exception occurred during an invocation on EJB BeanA method public void com.ivan.scbcd6.BeanA.methodA()
javax.ejb.EJBTransactionRolledbackException
.....
Caused by: javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean
...
Caused by: java.lang.RuntimeException: run time exception from b
at com.ivan.scbcd6.BeanB.methodB(BeanB.java:26)
Warning: StandardWrapperValve[OtherServlet]: PWC1406: Servlet.service() for servlet OtherServlet threw exception
javax.ejb.EJBTransactionRolledbackException