Leaking JMS Connections when injecting @JMSContext in two CDI Beans

Solution Verified - Updated -

Issue

When I have a @JMSContext injected in two CDI beans, called by another one which is participating to a transaction, it seems that this context does not get closed after the method invocation, causing connection leakage in the connection factory and the server to become unresponsive.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.1.0 - 7.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content