Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsTemplate.Execute(IProducerCallback) Method

Send a message to a NMS destination. The callback gives access to the NMS session and MessageProducer in order to do more complex send operations.

[Visual Basic]
Public NotOverridable Overloads Sub Execute( _
   ByVal action As IProducerCallback _
) _
    Implements INmsOperations.Execute
[C#]
public object Execute(
   IProducerCallback action
);

Parameters

action
callback object that exposes the session/producer pair

Return Value

the result object from working with the session

Implements

INmsOperations.Execute

See Also

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