Set Message Size Limits Using the jms
23.2.2. Using JMS If JNDI is used to look up the connection factory, the minimum large message size is specified in hornetq-jms.xml ... 250000 ... If the connection factory is being instantiated directly, the minimum large message size is specified by HornetQConnectionFactory.setMinLargeMessageSize.