}
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 {
String subName = sar.getTarget();
ClientSubscription sub = (ClientSubscription) subsTable.get(subName);
if (sub != null) {
sub.acknowledge(sar.getIds().iterator());
setSave();
}
}
}
}