use of com.swiftmq.jms.smqp.v400.CloseSessionRequest in project swiftmq-client by iitsoftware.
the class ConnectionConsumerImpl method close.
public void close() throws JMSException {
if (closed)
return;
Reply reply = null;
try {
reply = requestRegistry.request(new CloseSessionRequest(dispatchId));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
deliveryQueue.stopQueue();
deliveryQueue.close();
myConnection.removeRequestService(myDispatchId);
myConnection.removeConnectionConsumer(this);
if (!reply.isOk()) {
throw ExceptionConverter.convert(reply.getException());
}
}
use of com.swiftmq.jms.smqp.v400.CloseSessionRequest in project swiftmq-client by iitsoftware.
the class ConnectionConsumerImpl method close.
public void close() throws JMSException {
if (closed)
return;
Reply reply = null;
try {
reply = requestRegistry.request(new CloseSessionRequest(dispatchId));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
deliveryQueue.stopQueue();
deliveryQueue.close();
myConnection.removeRequestService(myDispatchId);
myConnection.removeConnectionConsumer(this);
if (!reply.isOk()) {
throw ExceptionConverter.convert(reply.getException());
}
}
use of com.swiftmq.jms.smqp.v400.CloseSessionRequest in project swiftmq-client by iitsoftware.
the class ConnectionConsumerImpl method close.
public void close() throws JMSException {
if (closed)
return;
Reply reply = null;
try {
reply = requestRegistry.request(new CloseSessionRequest(0, dispatchId));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
deliveryQueue.stopQueue();
deliveryQueue.close();
myConnection.removeRequestService(myDispatchId);
myConnection.removeConnectionConsumer(this);
if (!reply.isOk()) {
throw ExceptionConverter.convert(reply.getException());
}
}
Aggregations