send
public void send(Message message) throws JMSException;
Sends a message. Uses the message producer's default delivery mode, default priority, and default time to live.
- Parameters
- message - the message to be sent.
- 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
- MQJMS_MESSAGEPRODUCER_CLOSED
- java.lang.UnsupportedOperationException - if a client uses this method with a message producer for which no destination was specified when it was created.
uj29510_