tibemsMsgConsumer_Receive


Function

Purpose

Receive a message (synchronous).

C Declaration

tibems_status tibemsMsgConsumer_Receive( 
    tibemsMsgConsumer msgConsumer, 
    tibemsMsg* message ); 

COBOL Call

CALL "tibemsMsgConsumer_Receive" 
     USING BY VALUE msgConsumer, 
           BY REFERENCE message, 
           RETURNING tibems-status 
END-CALL. 

msgConsumer and message have usage pointer.

Parameter
Description
msgConsumer
Receive a message through this consumer.
message
The function stores a pointer to the inbound message in this location.

Remarks

This function consumes the next message from the consumer’s destination.

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

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


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