|
Note You may experience problems sending large messages using networks across slow links. The symptoms are usually that the network connection will be dropped and continuously re-established. This problem arises because the ActiveMQ message broker continuously checks for activity on a socket, and whilst building a large message in the TCP socket buffer, the inactivity monitor will time out - see Configuring Wire Formats and the TCP Transport Reference. You can either set the wireFormat.maxInactivityDuration property to a high value - or disable it (set it to zero) to work around this issue. e.g. configure your network connection like this:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://activemq.org/config/1.0">
<broker brokerName="receiver">
<transportConnectors>
<transportConnector uri="tcp://localhost:62002"/>
</transportConnectors>
<networkConnectors>
<networkConnector uri="static:(tcp://somehost:62001?wireFormat.maxInactivityDuration=0)"/>
</networkConnectors>
<persistenceAdapter>
<memoryPersistenceAdapter/>
</persistenceAdapter>
</broker>
</beans>
See also |