use of com.sun.enterprise.resource.XAResourceWrapper in project Payara by payara.
the class BasicResourceAllocator method createResource.
public ResourceHandle createResource(XAResource xaResource) throws PoolingException {
ResourceHandle resourceHandle = null;
ResourceSpec spec = new ResourceSpec(JMS_RESOURCE_FACTORY, ResourceSpec.JMS);
if (xaResource != null) {
logger.logp(Level.FINEST, "BasicResourceAllocator", "createResource", "NOT NULL", xaResource);
try {
resourceHandle = new ResourceHandle(// no object present
null, spec, this, null);
if (logger.isLoggable(Level.FINEST)) {
xaResource = new XAResourceWrapper(xaResource);
}
resourceHandle.fillInResourceObjects(null, xaResource);
} catch (Exception e) {
throw (PoolingException) (new PoolingException()).initCause(e);
}
} else {
logger.logp(Level.FINEST, "BasicResourceAllocator", "createResource", "NULL");
}
return resourceHandle;
}
Aggregations