in src/main/csharp/MessageProducer.cs [119:146]
public void Send(Apache.NMS.IDestination destination,
Apache.NMS.IMessage message)
{
Apache.NMS.XMS.Destination dest =
(Apache.NMS.XMS.Destination)destination;
Apache.NMS.XMS.Message msg = GetXMSMessage(message);
long timeToLive = (long)message.NMSTimeToLive.TotalMilliseconds;
if(0 == timeToLive)
{
timeToLive = this.xmsMessageProducer.TimeToLive;
}
try
{
this.xmsMessageProducer.Send(
dest.xmsDestination,
msg.xmsMessage,
this.xmsMessageProducer.DeliveryMode,
this.xmsMessageProducer.Priority,
timeToLive);
}
catch(Exception ex)
{
ExceptionUtil.WrapAndThrowNMSException(ex);
}
}