zeromq / jeromq-jms

JeroMQ JMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`ZmqConnection.close` should be a no-op

shs96c opened this issue · comments

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.

Fixed in release 3.0