# HAProxy+ActiveMQ

**URL:** <https://discourse.haproxy.org/t/haproxy-activemq/5141>\
**Category:** Help!\
**Created:** [April 26, 2020, 6:24pm UTC](https://discourse.haproxy.org/t/haproxy-activemq/5141 "2020-04-26T18:24:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JJJ70](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@JJJ70](https://discourse.haproxy.org/u/JJJ70)\
**Post date:** [April 26, 2020, 6:24pm UTC](https://discourse.haproxy.org/t/haproxy-activemq/5141/1 "2020-04-26T18:24:30Z")

</div>

Does anybody knows the best configuration to use a cluster of ActiveMQ servers with HAproxy?  
I used a working configuration for years, but know with the last activemq (5.15.12), connection is established with clients but after few seconds the whole clients disconnect. I got a lot of errors in activemq logs.

---

<div class="post-metadata">

**Author:** ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)\
**Post date:** [April 27, 2020, 12:03pm UTC](https://discourse.haproxy.org/t/haproxy-activemq/5141/2 "2020-04-27T12:03:38Z")

</div>

Can you provide logs provided by HAProxy ? Maybe your clients are inactive and a timeout triggers and HAProxy kills the connection.
