/// <summary> /// Sends the message to the default destination with the explicit QoS configuration /// </summary> public void Send(Apache.NMS.IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive) { Apache.NMS.EMS.Message msg = (Apache.NMS.EMS.Message)message; this.tibcoMessageProducer.Send( msg.tibcoMessage, EMSConvert.ToMessageDeliveryMode(deliveryMode), (int)priority, (long)timeToLive.TotalMilliseconds); }
/// <summary> /// Sends the message to the default destination with the explicit QoS configuration /// </summary> public void Send(Apache.NMS.IMessage message, bool persistent, byte priority, TimeSpan timeToLive) { Apache.NMS.EMS.Message msg = (Apache.NMS.EMS.Message)message; this.tibcoMessageProducer.Send( msg.tibcoMessage, EMSConvert.ToMessageDeliveryMode(persistent), priority, (long)timeToLive.TotalMilliseconds); }
/// <summary> /// Sends the message to the default destination with the explicit QoS configuration /// </summary> public void Send(Apache.NMS.IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive) { Apache.NMS.EMS.Message msg = GetEMSMessage(message); try { this.tibcoMessageProducer.Send( msg.tibcoMessage, EMSConvert.ToMessageDeliveryMode(deliveryMode), (int)priority, (long)timeToLive.TotalMilliseconds); } catch (Exception ex) { ExceptionUtil.WrapAndThrowNMSException(ex); } }