use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class TopicConnectionConsumerImpl method createDurableSubscriber.
void createDurableSubscriber(TopicImpl topic, String messageSelector, String durableName) throws JMSException {
this.topic = topic;
this.messageSelector = messageSelector;
this.durableName = durableName;
isDurable = true;
try {
SwiftUtilities.verifyDurableName(durableName);
} catch (Exception e) {
throw new JMSException(e.getMessage());
}
Reply reply = null;
try {
reply = requestRegistry.request(new CreateDurableRequest(this, 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.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visit.
public void visit(XAResPrepareRequest req) {
Reply reply = req.createReply();
reply.setOk(false);
reply.setException(new Exception("Please install the JMS XA/ASF Swiftlet to use this functionality!"));
reply.send();
}
use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visit.
public void visit(CreateShadowConsumerRequest req) {
Reply reply = req.createReply();
reply.setOk(false);
reply.setException(new Exception("Please install the JMS XA/ASF Swiftlet to use this functionality!"));
reply.send();
}
use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visit.
public void visit(XAResCommitRequest req) {
Reply reply = req.createReply();
reply.setOk(false);
reply.setException(new Exception("Please install the JMS XA/ASF Swiftlet to use this functionality!"));
reply.send();
}
use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visit.
public void visit(XAResRecoverRequest req) {
Reply reply = req.createReply();
reply.setOk(false);
reply.setException(new Exception("Please install the JMS XA/ASF Swiftlet to use this functionality!"));
reply.send();
}
Aggregations