List of usage examples for javax.transaction Transaction equals
public boolean equals(Object obj)
From source file:org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.java
@Override public void afterCompletion(int status) { Transaction current = null;/*from ww w . ja va 2 s. c om*/ try { current = TransactionHelper.lookupTransactionManager().getTransaction(); } catch (Exception e) { throw new RuntimeException("no tx", e); } Transaction main = threadBound.get(); if (main.equals(current)) { threadBound.remove(); } }