Example usage for javax.resource.spi ManagedConnection destroy

List of usage examples for javax.resource.spi ManagedConnection destroy

Introduction

In this page you can find the example usage for javax.resource.spi ManagedConnection destroy.

Prototype


public void destroy() throws ResourceException;

Source Link

Document

Destroys the physical connection to the underlying resource manager.

Usage

From source file:org.bytesoft.bytejta.supports.serialize.XAResourceDeserializerImpl.java

protected void closeQuietly(ManagedConnection closeable) {
    if (closeable != null) {
        try {/*from  w w w .j a v  a2s . c  o m*/
            closeable.destroy();
        } catch (Exception ex) {
            logger.debug(ex.getMessage());
        }
    }
}