if (poolKey != null)
{
if (transaction.isActive())
{
configureTransactionEventListener(transaction,mconn);
Transaction tx = nucleusContext.getTransactionManager().getTransaction(poolKey);
//must be set before getting the XAResource
mconn.setManagedResource();
enlistResource(mconn, tx, options);
}