tibemsMsgProducer_GetDestination

Function

Purpose

Get the destination of a message producer object.

C Declaration

tibems_status tibemsMsgProducer_GetDestination(
    tibemsMsgProducer msgProducer,
    tibemsDestination* destination );

COBOL Call

CALL "tibemsMsgProducer_GetDestination"
     USING BY VALUE msgProducer,
           BY REFERENCE destination,
           RETURNING tibems-status
END-CALL.
Note: msgProducer and destination have usage pointer.

Parameters

Parameter Description
msgProducer Get the destination from this producer.
destination Store the destination in this location.

Remarks

Each send call directs a message to a destination.

Programs can use this property to define a default destination for messages that this producer sends. Individual sending calls can override this default value.

Programs set this destination when creating the sender, and cannot subsequently change it.