tibemsConsumerInfo_IsConnected

Function

Purpose

Get the connection status of the consumer.

C Declaration

tibems_status tibemsConsumerInfo_IsConnected(
    tibemsConsumerInfo consumerInfo,
    tibems_bool* connected);

COBOL Call

CALL "tibemsConsumerInfo_IsConnected"
 USING BY VALUE consumerInfo,
       BY REFERENCE connected,
       RETURNING tibems-status
END-CALL.

Parameters

Parameter Description
consumerInfo Get the status of this consumer.
connected Store the connection status in this location.

Remarks

The connection status will be set to TRUE if this consumer is connected to the server, and FALSE otherwise. Only durable topic subscribers may be in a disconnected state. This function always sets the connection status to TRUE for queue receivers and non-durable topic consumers.