You might have some luck trying the "keepAlive" option detailed here: http://activemq.apache.org/tcp-transport-reference if the connection is getting terminated by the haproxy for some reason.
Br, Anton -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html