Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- TransactionTemplate tt = new TransactionTemplate(txManager);
- tt.execute(new TransactionCallbackWithoutResult(){
- protected void doInTransactionWithoutResult(
- TransactionStatus status) {
- updateDb1();
- updateDb2();
- }
- } catch (TransactionException ex) {
- // handle
- }
Add Comment
Please, Sign In to add comment