@Override public void commit(Object tx) throws Exception { if (tx instanceof EntityTransaction) super.commit(tx); else jtaTm.commit(tx); }
@Override public Object begin(TideTransactionPersistenceManager pm) { Object tx = null; try { tx = super.begin(pm); } catch (IllegalStateException e) { tx = jtaTm.begin(pm); } return tx; }
@Override public void rollback(Object tx) { if (tx instanceof EntityTransaction) super.rollback(tx); else jtaTm.rollback(tx); } }