MessageConsumer.Receive


Method

Declaration

Message Receive(); 
 
Message Receive( 
    long timeout ); 

Purpose

Receive a message (synchronous).

Parameter
Description
timeout
When present, wait no longer than this interval (in milliseconds) for a message to arrive. Zero is a special value, which specifies no timeout (block indefinitely).
When absent, the default value is zero.

Remarks

This method consumes the next message from the destination.

When the destination does not have any messages ready, this method blocks:

When calling receive within a transaction, the consumer retains the message until transaction commits.


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com