How do I configure ActiveMQ Classic to use AIO server transport

 FAQ > Configuration > How do I configure ActiveMQ Classic to use AIO server transport

For Windows XP:

  1. Download AIO (Asynchronous IO for Java) from IBM (http://www.alphaworks.ibm.com/tech/aio4j).

  2. Unzip the downloaded file and copy the following files:

    • ibmaio.dll
    • ibmaio-1.0.jar
  3. Place ibmaio.dll into Windows System32 folder. (You may need to restart afterwards for this to take effect)

  4. Include ibmaio-1.0.jar in the classpath.

  5. Edit ActiveMQ Classic’s configuration file (activemq.xml, found in the conf folder). Look the following snippet:

     <!-- ==================================================================== -->
     <!-- ActiveMQ Classic Broker Configuration -->
     <!-- ==================================================================== -->
     <broker>
      <connector>
       <tcpServerTransport uri="tcp://localhost:61616" backlog="1000" useAsyncSend="true" maxOutstandingMessages="50"/>
      </connector>
         .
         .
     </broker>   
    

    Change the connector settings, change tcpServerTransport to serverTransport and remove the unneeded parameters):

     <connector>
      <serverTransport uri="activeio:aio://<ip address>:<port>" />
     </connector>
    

    Example:

     <connector>
      <serverTransport uri="activeio:aio://192.168.0.162:61616" />
     </connector>
    

Apache, ActiveMQ, Apache ActiveMQ, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2024, The Apache Software Foundation. Licensed under Apache License 2.0.