use of com.swiftmq.jms.smqp.v600.CreateConsumerRequest in project swiftmq-client by iitsoftware.
the class QueueConnectionConsumerImpl method createConsumer.
void createConsumer(QueueImpl queue, String messageSelector) throws JMSException {
if (queue == null)
throw new NullPointerException("createConsumer, queue is null!");
queueName = queue.getQueueName();
this.queue = queue;
this.messageSelector = messageSelector;
Reply reply = null;
try {
reply = requestRegistry.request(new CreateConsumerRequest(this, dispatchId, (QueueImpl) queue, messageSelector));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (!reply.isOk())
throw ExceptionConverter.convert(reply.getException());
fillCache();
}
use of com.swiftmq.jms.smqp.v600.CreateConsumerRequest in project swiftmq-client by iitsoftware.
the class QueueConnectionConsumerImpl method createConsumer.
void createConsumer(QueueImpl queue, String messageSelector) throws JMSException {
if (queue == null)
throw new NullPointerException("createConsumer, queue is null!");
queueName = queue.getQueueName();
this.queue = queue;
this.messageSelector = messageSelector;
Reply reply = null;
try {
reply = requestRegistry.request(new CreateConsumerRequest(this, dispatchId, (QueueImpl) queue, messageSelector));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (!reply.isOk())
throw ExceptionConverter.convert(reply.getException());
fillCache();
}
use of com.swiftmq.jms.smqp.v600.CreateConsumerRequest in project swiftmq-client by iitsoftware.
the class QueueConnectionConsumerImpl method createConsumer.
void createConsumer(QueueImpl queue, String messageSelector) throws JMSException {
if (queue == null)
throw new NullPointerException("createConsumer, queue is null!");
queueName = queue.getQueueName();
Reply reply = null;
try {
reply = requestRegistry.request(new CreateConsumerRequest(dispatchId, (QueueImpl) queue, messageSelector));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (!reply.isOk())
throw ExceptionConverter.convert(reply.getException());
fillCache();
}
use of com.swiftmq.jms.smqp.v600.CreateConsumerRequest in project swiftmq-client by iitsoftware.
the class QueueConnectionConsumerImpl method createConsumer.
void createConsumer(QueueImpl queue, String messageSelector) throws JMSException {
if (queue == null)
throw new NullPointerException("createConsumer, queue is null!");
queueName = queue.getQueueName();
Reply reply = null;
try {
reply = requestRegistry.request(new CreateConsumerRequest(dispatchId, (QueueImpl) queue, messageSelector));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (!reply.isOk())
throw ExceptionConverter.convert(reply.getException());
fillCache();
}
use of com.swiftmq.jms.smqp.v600.CreateConsumerRequest in project swiftmq-client by iitsoftware.
the class QueueConnectionConsumerImpl method createConsumer.
void createConsumer(QueueImpl queue, String messageSelector) throws JMSException {
if (queue == null)
throw new NullPointerException("createConsumer, queue is null!");
queueName = queue.getQueueName();
this.queue = queue;
this.messageSelector = messageSelector;
Reply reply = null;
try {
reply = requestRegistry.request(new CreateConsumerRequest(this, dispatchId, (QueueImpl) queue, messageSelector));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (!reply.isOk())
throw ExceptionConverter.convert(reply.getException());
fillCache();
}
Aggregations