send
public void send(Message message, int deliveryMode, int priority, long timeToLive) throws JMSException;
Sends a message specifying a delivery mode, a priority, and the lifetime of the message.
- Parameters
- message - the message to send.
- deliveryMode - the delivery mode to use.
- priority - the priority for the message
- timeToLive - the lifetime of the message in milliseconds.
- Exceptions
- JMSException - with one of the following reasons:
- MQJMS_PS_TOPIC_NULL
- MQJMS_E_TMPT_DELETED
- MQJMS_EXCEPTION_BAD_VALUE
- MQJMS_PUBLISHER_CLOSED
- MQJMS_E_UNIDENT_PRO_INVALID_OP
- MQJMS_EXCEPTION_MQ_NULL_Q
- MQJMS_E_SESSION_ASYNC
- MQJMS_PS_PUBLISH_MSG_FAILED
- MQJMS_ERR_QSENDER_CLOSED
- MQJMS_E_SESSION_CLOSED
- MQJMS_E_UNKNOWN_TARGET_CLIENT
- MQJMS_PS_PUBLISH_MSG_BUILD
- MQJMS_EXCEPTION_MSG_CREATE_ERROR
- MQJMS_UTIL_PS_NO_BROKER
- MQJMS_E_11_SERVICES_NOT_SETUP
- MQJMS_E_INTERNAL_ERROR
- MQJMS_EXCEPTION_PUT_MSG_FAILED
uj29520_