Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

INmsOperations.ReceiveSelectedAndConvert(IDestination, String) Method

Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured IMessageConverter.

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 ReceiveSelectedAndConvert( _
   ByVal destination As IDestination, _
   ByVal messageSelector As String _
object ReceiveSelectedAndConvert(
   IDestination destination,
   string messageSelector


the destination to receive a message from
the NMS message selector expression (or
if none). See the NMS specification for a detailed definition of selector expressions.

Return Value

the message produced for the consumer or

if the timeout expires.

See Also

INmsOperations Interface | Spring.Messaging.Nms.Core Namespace | INmsOperations.ReceiveSelectedAndConvert Overload List