Using ActiveMQ > Configure version 6 Virtual Threads
ActiveMQ support for Virtual Threads is in Technology Preview stage.
To enable Virtual Threads in ActiveMQ 6.x (and higher)
Checkout activemq source code from git
Build using JDK 21 (Virtual Thread support will be added automatically)
Edit conf/activemq.xml
<broker ... virtualThreadTeaskRunner=“true” .. >
Run ActiveMQ and confirm with the following log message:
INFO | VirtualThreadExecutor initialized name:ActiveMQ BrokerService[localhost] Task
NOTE: The log message may be removed in the future
The implementation approach is subject to change. Be sure to verify features in Release notes.
User feedback is welcome! Please comment on the JIRAs with questions and comments.
JIRA|Status|Target Version|Completed Version|Feature|Notes ---|---|--- AMQ-9394 | PR #1121 | 6.1.0 | | Task Runner Factory | Optional support to configure Virtual Thread Executor Service