Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.ConvertAndSend(String, Object, IMessagePostProcessor) Method

Send the given object to the specified destination, converting the object to a NMS message with a configured IMessageConverter. The IMessagePostProcessor callback allows for modification of the message after conversion.

[Visual Basic]
Public NotOverridable Overloads Sub ConvertAndSend( _
   ByVal destinationName As String, _
   ByVal message As Object, _
   ByVal postProcessor As IMessagePostProcessor _
) _
    Implements INmsOperations.ConvertAndSend
[C#]
public void ConvertAndSend(
   string destinationName,
   object message,
   IMessagePostProcessor postProcessor
);

Parameters

destinationName
the name of the destination to send this message to (to be resolved to an actual destination by a DestinationResolver)
message
the object to convert to a message.
postProcessor
the callback to modify the message

Implements

INmsOperations.ConvertAndSend

See Also

NmsTemplate Class | Spring.Messaging.Nms.Core Namespace | NmsTemplate.ConvertAndSend Overload List