msg.setJMSDeliveryMode(DeliveryMode.PERSISTENT);
else
msg.setJMSDeliveryMode(DeliveryMode.NON_PERSISTENT);
org.xmlBlaster.util.qos.address.Destination[] destArr = qosData.getDestinationArr();
Destination dest = null;
if (destArr != null && destArr.length > 0) {
if (destArr.length > 1)
log.warning("there are more than one destinations defined. The current JMS Implementation only supports single PtP Destinations");
dest = new XBDestination(keyData.toXml(), destArr[0].getDestination().getAbsoluteName(), destArr[0].forceQueuing());
}
else
dest = new XBDestination(keyData.toXml(), null, false);
msg.setJMSDestination(dest);
long life = qosData.getLifeTime();
msg.setJMSExpiration(life);
String msgId = "ID:" + qosData.getRcvTimestamp().getTimestamp();
msg.setJMSMessageID(msgId);
msg.setJMSPriority(qosData.getPriority().getInt());
boolean redelivered = qosData.getClientProperty(XBMessage.addToKeyAndCheck(XBPropertyNames.JMS_REDELIVERED), false);
if (redelivered)
msg.setJMSRedelivered(true);
if (sender != null) {
// no force queuing (since I don't know better)
Destination senderDest = new XBDestination(null, sender, false);
msg.setJMSReplyTo(senderDest);
}
long timestamp = qosData.getClientProperty(XBMessage.addToKeyAndCheck(XBPropertyNames.JMS_TIMESTAMP), 0L);
if (timestamp != 0L)