{
public static void testNullRollbackOnly()
throws Exception
{
UserTransaction ut = UserTransactionFactory.userTransaction();
try
{
ut = UserTransactionFactory.userTransaction();
ut.begin();
ut.setRollbackOnly();
ut.commit();
}
catch (TransactionRolledBackException ex)
{
// we should get here
} catch (Exception eouter) {
try {
ut.rollback();
} catch(Exception einner) {
}
throw eouter;
}
}