A typical service class method looks like the following: public void updateSomething(TransactionConfig tc, …) { try { TransactionHelper.begin(tc); …. TransactionHelper.commit(tc); } catch (Exception e) { TransactionHelper.rollback(tc); throw e; } } OR public xxx getSomething(TransactionConfig tc, …) { try { TransactionHelper.begin(tc); …. return xxx; } finally { TransactionHelper.rollback(tc); } } The object TransactionConfig can be used ..