tibemsMsgCallback

Type

Purpose

Asynchronously process an arriving message.

C Declaration

typedef void (*tibemsMsgCallback) (
    tibemsMsgConsumer msgConsumer,
    tibemsMsg msg,
    void* closure );

Parameters

Parameter Description
msgConsumer Receive the consumer object.
msg Receive the message object.
closure Receive the closure argument, which your program registered on the consumer.

Remarks

To asynchronous receive messages, your program can define callback functions of this type, and register them with a consumer (using tibemsMsgConsumer_SetMsgListener or a related function). When a message arrives, the consumer calls its callback.

This call is not supported in COBOL.

Serialization

In compliance with the JMS specification, sessions distribute messages to consumers in serial (non-concurrent) fashion.