Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IEmsOperations.Send(String, IMessageCreator) Method

Send a message to the specified destination. The IMessageCreator callback creates the message given a Session.

[Visual Basic]
Public Sub Send( _
   ByVal destinationName As String, _
   ByVal messageCreator As IMessageCreator _
)
[C#]
void Send(
   string destinationName,
   IMessageCreator messageCreator
);

Parameters

destinationName
the name of the destination to send this message to (to be resolved to an actual destination by a DestinationResolver)
messageCreator
callback to create a message

Exceptions

Exception Type Condition
EMSException If there is any problem accessing the EMS API

See Also

IEmsOperations Interface | Spring.Messaging.Ems.Core Namespace | IEmsOperations.Send Overload List