Products | Versions |
---|---|
TIBCO Enterprise Message Service | - |
Not Applicable | - |
Yes, you should close the producer. Otherwise, you will run into a producer leak issue. Since we allocate some resources on behalf of a MessageProducer outside the Java virtual machine, clients should close them when they are no longer needed. A CompletionListener callback method must not call close on its own MessageProducer. Doing so will cause an IllegalStateException to be thrown. If the session/connection is closed, all producers associated with it will be closed.