posted 18 years ago
setRollbackOnly() can be called only by CMT beans. But for setRollbackOnly() to work, the method must be in a transaction.
The create and remove methods of session bean are not considered part of a client's transaction (unlike the way it works with entity beans).
I guess it help you.
SCJA, SCJP, SCBCD & SCEA (Part I)