Is it possible to have something like this? Client code in a thread with pseudo code :
transaction.begin();
ejb.method();
transaction.commit();
The method() belongs to an EJB3 stateless session bean, annotated with TransactionAttributeType.REQUIRED.
The method() could set setRollbackOnly().
If the ejb method sets the setRollbackOnly(), should there be some checks before trying to commit the transaction?
Thanks!