Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MessageListenerAdapter.BuildMessage Method

Builds a JMS message to be sent as response based on the given result object.

[Visual Basic]
Protected Overridable Sub BuildMessage( _
   ByVal session As ISession, _
   ByVal result As Object _
)
[C#]
protected virtual Message BuildMessage(
   ISession session,
   object result
);

Parameters

session
The JMS Session to operate on.
result
The content of the message, as returned from the listener method.

Return Value

the JMS

Message
(never
null
)

Exceptions

Exception Type Condition
MessageConversionException If there was an error in message conversion
EMSException if thrown by EMS API methods

See Also

MessageListenerAdapter Class | Spring.Messaging.Ems.Listener.Adapter Namespace