Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IMessageConverter.ToMessage Method

Convert a .NET object to a NMS Message using the supplied session to create the message object.

[Visual Basic]
Public Sub ToMessage( _
   ByVal objectToConvert As Object, _
   ByVal session As ISession _
)
[C#]
IMessage ToMessage(
   object objectToConvert,
   ISession session
);

Parameters

objectToConvert
the object to convert
session
the Session to use for creating a NMS Message

Return Value

the NMS Message

See Also

IMessageConverter Interface | Spring.Messaging.Nms.Support.Converter Namespace