Thanks for the answer. It was really my mistake. (But i didn't get where it was) I got it working with the following config:
<cluster-connectionname="my-cluster">
<address>jms</address>
<connector-ref>netty</connector-ref>
<check-period>1000</check-period>
<connection-ttl>1000</connection-ttl>
<reconnect-attempts>3</reconnect-attempts>
<use-duplicate-detection>true</use-duplicate-detection>
<forward-when-no-consumers>false</forward-when-no-consumers>
<discovery-group-refdiscovery-group-name="dg-group1"/>
</cluster-connection>
I had the same problem until I add <forward-when-no-consumers>false</forward-when-no-consumers> as above reply, on hornetq 2.3.25