Set Message Size Limits Using the Core API
23.2.1. Using Core API If the HornetQ Core API is used, the minimal large message size is specified by ClientSessionFactory.setMinLargeMessageSize. ClientSessionFactory factory = HornetQClient.createClientSessionFactory(new TransportConfiguration(NettyConnectorFactory.class.getName()), null); factory.setMinLargeMessageSize(25 * 1024); Section 16.3, “Configuring the transport directly from the client side.� will provide more information on how to instantiate the session factory.