21.2.2. Using JMS
If JNDI is used to look up the connection factory, the minimum large message size is specified in
JBOSS_DIST/jboss-as/server/<PROFILE>/deploy/hornetq/hornetq-jms.xml
.
... <connection-factory name="NettyConnectionFactory"> <connectors> <connector-ref connector-name="netty"/> </connectors> <entries> <entry name="/ConnectionFactory"/> <entry name="/XAConnectionFactory"/> </entries> <min-large-message-size>250000</min-large-message-size> </connection-factory> ...
If the connection factory is being instantiated directly, the minimum large message size is specified by
HornetQConnectionFactory.setMinLargeMessageSize
.