/** * This will close its open connection that it has cached, thus freeing up resources. * This method should be called when this context factory is no longer needed. But realize * that any contexts that were created with the cached connection will be invalidated * since this method will close that connection. * * @throws JMSException any error */ @Override public void close() throws JMSException { cacheConnection(null, true); log.debugf("%s has been closed", this); }
/** * This will close its open connection that it has cached, thus freeing up resources. * This method should be called when this context factory is no longer needed. But realize * that any contexts that were created with the cached connection will be invalidated * since this method will close that connection. * * @throws JMSException any error */ @Override public void close() throws JMSException { cacheConnection(null, true); log.debugf("%s has been closed", this); }
cacheConnection(conn, false); cacheConnection(conn, false); } catch (JMSException e) { msglog.errorFailedToStartConnection(e); cacheConnection(null, true); throw e;
cacheConnection(conn, false); cacheConnection(conn, false); } catch (JMSException e) { msglog.errorFailedToStartConnection(e); cacheConnection(null, true); throw e;