ops4j / org.ops4j.pax.jms

Pax JMS provides a lightweight bridge between Java Message Service (JMS) and OSGi using Declarative Services and the whiteboard pattern
Apache License 2.0
5 stars 8 forks source link

JMS connections aren't closed #8

Closed johnpoth closed 6 years ago

johnpoth commented 6 years ago

Noticed in Apache ActiveMQ Artemis server logs:

17:00:35,773 WARN [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session d41a3cab-27a0-11e8-a997-54ee758f8fb4 17:00:35,773 WARN [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session d4262391-27a0-11e8-a997-54ee758f8fb4 17:00:35,773 WARN [org.apache.activemq.artemis.core.server] AMQ222061: Client connection failed, clearing up resources for session d43565d7-27a0-11e8-a997-54ee758f8fb4 17:00:35,773 WARN [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session d41a3cab-27a0-11e8-a997-54ee758f8fb4 17:00:35,773 WARN [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session d4262391-27a0-11e8-a997-54ee758f8fb4 17:00:35,774 WARN [org.apache.activemq.artemis.core.server] AMQ222107: Cleared up resources for session d43565d7-27a0-11e8-a997-54ee758f8fb4

To reproduce simply use Pax JMS and shutdown your OSGI container. I can provide a fix.