createProducer
public MessageProducer createProducer(Destination destination) throws JMSException;
Creates a MessageProducer to send messages to the specified destination.
- Parameters
- destination - the Destination to send to, or null if this is a producer which does not have a specified destination.
- Exceptions
- JMSException - with reason MQJMS_EXCEPTION_MQ_NULL_QMGR
- JMSException - with reason MQJMS_EXCEPTION_MQ_Q_OPEN_FAILED
- InvalidDestinationException - If the topic specified is not valid.
- JMSException - if the Session fails to create a producer because of an internal error.
uj30190_