EAP 6.3 XA connection pool keeps reestablishing connections to A-MQ 6.1

Solution Verified - Updated -

Issue

We are deploying camel routes into an EAP 6.3 container and using the A-MQ 6.1 JCA connector to connect to a remote A-MQ instance.
Each camel route is consuming a message from a A-MQ queue wrapped in an XA transaction.

The JCA adapter has been configured to pool 20 connections, however in the hawtio console we’re seeing that the enqueue count on the ActiveMQ.Advisory.Connection topic keeps increasing. We also see CPU usage of the broker go up to 80% when their are 20 concurrent consumers deployed to EAP.

We used the camel project found here to test XA transactions:

https://github.com/noelo/EAPJMSXA

  1. setup A-MQ 6.1

  2. setup Postgres Database, and run create-psql.txt from the test case

  3. setup EAP 6.3 standalone.xml from the test case

  4. Compile and Deploy test case

  5. Send messages to 'TESTQIN' on A-MQ

Observe the Enqueue Count going up on the ActiveMQ.Advisory.Connection topic in web console. Also if you increase the concurrentConsumers for jmsXA bean in camel-config.xml, you should see the high CPU for the Broker JVM.

Environment

  • Red Hat JBoss A-MQ 6.1.0
  • Red Hat JBoss EAP 6.3
  • Red Hat JBoss A-MQ 6.1 Resource Adapater (RAR)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.