IEmsOperations.Receive(Destination) Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IEmsOperations.Receive(Destination) Method

Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

[Visual Basic]
Public Sub Receive( _
   ByVal destination As Destination _
Message Receive(
   Destination destination


the destination to receive a message from

Return Value

the message received by the consumer, or

if the timeout expires


Exception TypeCondition
EMSExceptionIf there is any problem accessing the EMS API

See Also

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