catch (JMSException jmsEx) {
handleAsyncException(jmsEx);
}
}
else if (packet.getPacketType() == Packet.CAPACITY_INFO) {
CapacityInfo info = (CapacityInfo) packet;
flowControlSleepTime = info.getFlowControlTimeout();
//System.out.println("SET FLOW TIMEOUT = " + flowControlSleepTime + " FOR " + info);
} else if (packet.getPacketType() == Packet.KEEP_ALIVE && packet.isReceiptRequired()) {
Receipt receipt = new Receipt();
receipt.setCorrelationId(packet.getId());
receipt.setReceiptRequired(false);