/**
* Creates and returns a JMS- <code>QueueSender</code> for the given queue.
*/
public QueueSender getSender(XBUSSystem system) throws XException {
QueueSender sender = null;
String pyhsQueuename = getPhysQueuename(system);
Queue queue = getQueue(pyhsQueuename);
try {
if ((sender = (QueueSender) mSenders.get(pyhsQueuename)) == null) {
sender = mSession.createSender(queue);
sender.setDeliveryMode(DeliveryMode.PERSISTENT);
mSenders.put(pyhsQueuename, sender);
}
} catch (JMSException e) {
Trace
.warn("Connection may be gone, trying MQConnection.getSender again ...");
mIsOpen = false;
open();
try {
if ((sender = (QueueSender) mSenders.get(pyhsQueuename)) == null) {
sender = mSession.createSender(queue);
sender.setDeliveryMode(DeliveryMode.PERSISTENT);
mSenders.put(pyhsQueuename, sender);
}
} catch (JMSException exc) {
throw new XException(Constants.LOCATION_EXTERN,
Constants.LAYER_TECHNICAL,