/** * delist the <code>ResourceHandle</code> from the transaction * * @param h <code>ResourceHandle</code> object * @param xaresFlag flag indicating transaction success. This can * be XAResource.TMSUCCESS or XAResource.TMFAIL * @exception <code>PoolingException</code> */ public void delistResource(ResourceHandle h, int xaresFlag) { try { JavaEETransactionManager tm = ConnectorRuntime.getRuntime().getTransactionManager(); Transaction tran = tm.getTransaction(); if (tran != null) { tm.delistResource(tran, h, xaresFlag); } } catch (SystemException ex) { _logger.log(Level.WARNING,"poolmgr.system_exception",ex); } catch (IllegalStateException ex) { // ignore } }
tm.delistResource(tran, resource, xaresFlag);