close
public void close() throws JMSException;
Closes the message producer. Because a provider can allocate some resources outside the JVM on behalf of a MessageProducer, clients must close them when they are not needed. We cannot rely on garbage collection to reclaim these resources because this might not occur soon enough.
- Exceptions
- JMSException - with reason MQJMS_EXCEPTION_MQ_Q_CLOSE_FAILED
uj29420_