15.3. Configuring Asynchronous Connection Execution
By default, packets received on the server side are executed on the remoting thread.
A thread from a thread pool can be used instead to handle some packets so that the remoting thread is not tied up for too long.
Note
Processing operations asynchronously on another thread adds a little more latency.
Most short running operations are handled on the remoting thread for performance reasons. Ensure the parameter
async-connection-execution-enabled
in <JBOSS_HOME>/jboss-as/server/<PROFILE>/deploy/hornetq/hornetq-configuration.xml
is set to true to enable asynchronous connection execution.