javax.jms.Connection is AutoCloseable, so expected usage is in a try-with-resources block. This automatically calls close when leaving the block. The current implementation of ZmqConnection.close throws an UnsupportedOperationException. Making this a no-op (and potentially logging the problem?) would allow the expected JMS usage to work.
javax.jms.Connection
isAutoCloseable
, so expected usage is in a try-with-resources block. This automatically callsclose
when leaving the block. The current implementation ofZmqConnection.close
throws anUnsupportedOperationException
. Making this a no-op (and potentially logging the problem?) would allow the expected JMS usage to work.