messaginghub / pooled-jms

A JMS Connection pool for messaging applications supporting JMS 1.1 and 2.0 and Jakarta JMS clients
Apache License 2.0
49 stars 25 forks source link

Remotely closed producers can lead to being unable to send any message #17

Closed tabish121 closed 4 years ago

tabish121 commented 4 years ago

If the JMS provider supports allowing the remote to close resources such as session and producers the cached producer instances can be held forever and never again successfully send a message. Some minimal effort should be made to detect that a resource was closed and evict it from the pool or cleared from session cache so new instance can be recreated once an exception is thrown.