use of com.swiftmq.jms.smqp.v400.CreateDurableReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createDurableSubscriber.
void createDurableSubscriber(TopicImpl topic, String messageSelector, String durableName) throws JMSException {
try {
SwiftUtilities.verifyDurableName(durableName);
} catch (Exception e) {
throw new JMSException(e.getMessage());
}
Reply reply = null;
try {
reply = requestRegistry.request(new CreateDurableRequest(dispatchId, topic, messageSelector, false, durableName));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateDurableReply) reply).getQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
use of com.swiftmq.jms.smqp.v400.CreateDurableReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createDurableSubscriber.
void createDurableSubscriber(TopicImpl topic, String messageSelector, String durableName) throws JMSException {
try {
SwiftUtilities.verifyDurableName(durableName);
} catch (Exception e) {
throw new JMSException(e.getMessage());
}
Reply reply = null;
try {
reply = (CreateDurableReply) requestRegistry.request(new CreateDurableRequest(dispatchId, (TopicImpl) topic, messageSelector, false, durableName));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateDurableReply) reply).getQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
use of com.swiftmq.jms.smqp.v400.CreateDurableReply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createDurableSubscriber.
void createDurableSubscriber(TopicImpl topic, String messageSelector, String durableName) throws JMSException {
try {
SwiftUtilities.verifyDurableName(durableName);
} catch (Exception e) {
throw new JMSException(e.getMessage());
}
Reply reply = null;
try {
reply = (CreateDurableReply) requestRegistry.request(new CreateDurableRequest(dispatchId, (TopicImpl) topic, messageSelector, false, durableName));
} catch (Exception e) {
throw ExceptionConverter.convert(e);
}
if (reply.isOk()) {
queueName = ((CreateDurableReply) reply).getQueueName();
} else {
throw ExceptionConverter.convert(reply.getException());
}
fillCache();
}
Aggregations