0
votes

I do have two ActiveMQ brokers connected and do forward messages from broker one to broker two automatically. This is done by following configuration:

<networkConnectors>
    <networkConnector name="linkToRemote" uri="static(tcp://172.19.63.3:61616)?jms.useCompression=true" staticBridge="true"> 
        <staticallyIncludedDestinations>
           <queue physicalName="xyz.queue"/>
        </staticallyIncludedDestinations> 
    </networkConnector>
</networkConnectors>

Everything except the compression is working fine. My messages are 180KB in size. I have seen that the traffic is not compressed at all. Is jms.useCompression=true not functional? Has someone any alternatives to compress the traffic between two brokers? What about ssh tunnels if compression in ActiveMQ this is not working? My ActiveMQ version is 5.14.13.

1
Justin, thank you very much !Maciej A. Bednarz
Following the advise at issues.apache.org/jira/browse/AMQ-3787 I tried to set just uri="static(tcp://172.19.63.3:61616)?useCompression=true" and uri="static(tcp://172.19.63.3:61616)?connection.useCompression=true" Both did not worked also.Maciej A. Bednarz
Add any additional information to the original question rather than in the comments.Justin Bertram
Hi, I am now using autossh and compression. This combination works great.Maciej A. Bednarz

1 Answers

0
votes

I am now using autossh and compression. This combination works great. Active MQ does not compress the messages well if we use many small messages as it does not share a common compression dictionary.