sender.send(msg);
sender.close();
log.debug("Sent msg to queue/QueueA");
// receive the message at queue B.
QueueReceiver recv = session.createReceiver(queB);
msg = recv.receive(15000);
recv.close();
log.debug("Recv msg: " + msg);
// get the message's content.
String info = msg.getStringProperty("reply");
if (info == null || info.startsWith("Failed"))