Limit Producer Rate Flow-Control using JMS
19.2.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.setProducerMaxRate(int consumerMaxRate) method.