use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visitXAResRecoverRequest.
public void visitXAResRecoverRequest(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();
}
use of com.swiftmq.tools.requestreply.Reply in project swiftmq-client by iitsoftware.
the class SMQPVisitorAdapter method visitXAResStartRequest.
public void visitXAResStartRequest(XAResStartRequest 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 visitXAResEndRequest.
public void visitXAResEndRequest(XAResEndRequest 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 visitXAResStartRequest.
public void visitXAResStartRequest(XAResStartRequest 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 TopicConnectionConsumerImpl method createSubscriber.
void createSubscriber(TopicImpl topic, String messageSelector) throws JMSException {
this.topic = topic;
this.messageSelector = messageSelector;
isDurable = false;
Reply reply = null;
try {
reply = requestRegistry.request(new CreateSubscriberRequest(this, 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