use of com.swiftmq.jms.smqp.v500.CreateSubscriberReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createSubscriber.
void createSubscriber(TopicImpl topic, String messageSelector) throws JMSException {
Reply reply = null;
try {
reply = requestRegistry.request(new CreateSubscriberRequest(dispatchId, (TopicImpl) topic, messageSelector, false));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateSubscriberReply) reply).getTmpQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
use of com.swiftmq.jms.smqp.v500.CreateSubscriberReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createSubscriber.
void createSubscriber(TopicImpl topic, String messageSelector) throws JMSException {
Reply reply = null;
try {
reply = requestRegistry.request(new CreateSubscriberRequest(dispatchId, (TopicImpl) topic, messageSelector, false));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateSubscriberReply) reply).getTmpQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
use of com.swiftmq.jms.smqp.v500.CreateSubscriberReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createSubscriber.
void createSubscriber(TopicImpl topic, String messageSelector) throws JMSException {
Reply reply = null;
try {
reply = requestRegistry.request(new CreateSubscriberRequest(dispatchId, topic, messageSelector, false, false));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateSubscriberReply) reply).getTmpQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
Aggregations