List of usage examples for org.springframework.jdbc.datasource ConnectionHolder getConnectionHandle
@Nullable
public ConnectionHandle getConnectionHandle()
From source file:org.dalesbred.integration.spring.SpringTransactionManager.java
@Override public boolean hasActiveTransaction() { ConnectionHolder conHolder = (ConnectionHolder) TransactionSynchronizationManager.getResource(dataSource); return conHolder != null && (conHolder.getConnectionHandle() != null || conHolder.isSynchronizedWithTransaction()); }