Search in sources :

Example 1 with ConnectionConsumer

use of javax.jms.ConnectionConsumer in project ats-framework by Axway.

the class ManagedConnection method close.

@Override
public synchronized void close() throws JMSException {
    for (final ConnectionConsumer c : connectionConsumers) try {
        c.close();
    } catch (final Exception e) {
    }
    connectionConsumers.clear();
    for (final ManagedSession session : sessions) session.shutdown();
    sessions.clear();
    try {
        this.stop();
    } catch (final Exception e) {
    }
    connection.close();
}
Also used : ConnectionConsumer(javax.jms.ConnectionConsumer) ManagedSession(com.axway.ats.action.jms.model.sessions.ManagedSession) JMSException(javax.jms.JMSException)

Aggregations

ManagedSession (com.axway.ats.action.jms.model.sessions.ManagedSession)1 ConnectionConsumer (javax.jms.ConnectionConsumer)1 JMSException (javax.jms.JMSException)1