Window Based Flow Control (Producer) Using JMS
19.2.1.2. Using JMS If JNDI is used to look up the connection factory, the producer window size can be configured in hornetq-jms.xml: 10 If the connection factory is directly instantiated, the producer window size can be set via the HornetQConnectionFactory.setProducerWindowSize(int producerWindowSize) method.