![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibems_status tibemsMsgProducer_Send(tibemsMsgProducer msgProducer,tibemsMsg message );tibems_status tibemsMsgProducer_SendEx(tibemsMsgProducer msgProducer,tibemsMsg message,tibems_int deliveryMode,tibems_int priority,tibems_long timeToLive );tibems_status tibemsMsgProducer_SendToDestination(tibemsMsgProducer msgProducer,tibemsDestination destination,tibemsMsg message );tibems_status tibemsMsgProducer_SendToDestinationEx(tibemsMsgProducer msgProducer,tibemsDestination destination,tibemsMsg message,tibemsDeliveryMode deliveryMode,tibems_int priority,tibems_long timeToLive );
When present, the call sends the message to this destination (queue or topic).Other send calls send the message to the producer’s default destination. When the producer does not specify a default, the send call must supply this parameter. Other send calls send the message with the producer’s default delivery mode. Priority affects the order in which the server delivers messages to consumers (higher values first). The JMS specification defines ten levels of priority value, from zero (lowest priority) to 9 (highest priority). The specification suggests that clients consider 0–4 as gradations of normal priority, and priorities 5–9 as gradations of expedited priority.Other send calls send the message with the producer’s default priority. When present, the call uses this value (in milliseconds) to compute the message expiration.
• If the time-to-live is non-zero, the expiration is the sum of that time-to-live and the sending client’s current time (GMT). This rule applies even within sessions with transaction semantics—the timer begins with the send call, not the commit call.
• If the time-to-live is zero, then expiration is also zero—indicating that the message never expires.Whenever your application uses non-zero values for message expiration or time-to-live, you must ensure that clocks are synchronized among all the host computers that send and receive messages. Synchronize clocks to a tolerance that is a very small fraction of the smallest or time-to-live.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |