public void returnConnection(
ConnectionInfo connectionInfo,
ConnectionReturnAction connectionReturnAction) {
try {
ManagedConnectionInfo mci = connectionInfo.getManagedConnectionInfo();
TransactionContext transactionContext = TransactionContext.getContext();
if (transactionContext.isActive()) {
XAResource xares = mci.getXAResource();
transactionContext.getTransaction().delistResource(xares, XAResource.TMSUSPEND);
}
} catch (SystemException e) {
//maybe we should warn???
connectionReturnAction = ConnectionReturnAction.DESTROY;