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:
-
Download AIO (Asynchronous IO for Java) from IBM (http://www.alphaworks.ibm.com/tech/aio4j).
-
Unzip the downloaded file and copy the following files:
- ibmaio.dll
- ibmaio-1.0.jar
-
Place ibmaio.dll into Windows System32 folder. (You may need to restart afterwards for this to take effect)
-
Include ibmaio-1.0.jar in the classpath.
-
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>