Limit the Rate of Flow Control with JMS
19.1.2.2. Using JMS If JNDI is used to look up the connection factory, the max rate can be configured in hornetq-jms.xml: 10 If the connection factory is directly instantiated, the max rate size can be set via the HornetQConnectionFactory.setConsumerMaxRate(int consumerMaxRate) method.