While reading through the Transactions chapter of Head First
EJB , I read that getRollbackOnly() only supports the following Transaction Attribute :
1) Required
2) RequiresNew
3) Mandatory
For "NotSupported" and "Never" , I understand that getRollbackOnly() should not be supported as transaction is not supported by these attributes, but it should be supported for "Supports".
And support of "Mandatory" attribute even drills more my mind why "Supports" is not supported as the difference between "Supports" and "Mandatory" is the only difference of the exception thrown by "Mandatory".
Thanks