Configure Window-Based Flow Control Window-size with JMS
19.1.1.2. Using JMS if JNDI is used to look up the connection factory, the consumer window size is configured in hornetq-jms.xml: 0 If the connection factory is directly instantiated, the consumer window size is specified by HornetQConnectionFactory.setConsumerWindowSize() method. Please see Section 11.1.32, “No Consumer Buffering� for an example which shows how to configure HornetQ to prevent consumer buffering when dealing with slow consumers.