Enumeration pms = req.getProducerMessages();
if (pms != null) {
while (pms.hasMoreElements()) {
ProducerMessages pm = (ProducerMessages) pms.nextElement();
AgentId destId = AgentId.fromString(pm.getTarget());
ClientMessages not = new ClientMessages(key,
req.getRequestId(), pm.getMessages());
setDmq(not);
if (destId.getTo() == getId().getTo()) {
// local sending
not.setPersistent(false);
if (req.getAsyncSend()) {
not.setAsyncSend(true);
} else {
asyncReplyCount++;
}
}
sendNot(destId, not);
}
}
Enumeration acks = req.getAckRequests();
if (acks != null) {
while (acks.hasMoreElements()) {
SessAckRequest sar = (SessAckRequest) acks.nextElement();
if (sar.getQueueMode()) {
AgentId qId = AgentId.fromString(sar.getTarget());
Vector ids = sar.getIds();
AcknowledgeRequest not = new AcknowledgeRequest(activeCtxId, req
.getRequestId(), ids);
if (qId.getTo() == getId().getTo()) {
// local sending
not.setPersistent(false);
// No reply to wait for
}
sendNot(qId, not);
} else {