public void destroy ( ) { JmsUtils . closeSession ( session ) ; if ( connection != null ) { ConnectionFactoryUtils . releaseConnection ( connection , endpointConfiguration . getConnectionFactory ( ) , true ) ; } }
Destroy method closing JMS session and connection