activemq.org › Handbook › What is ActiveMQ?
HandbookWhat is ActiveMQ?
Apache ActiveMQ is an open source, Java-based message broker: a server that accepts messages from one application, stores them and delivers them to other applications, so the two sides never call each other directly. It is a JMS (Java Message Service) provider that also speaks AMQP, STOMP and MQTT, so clients written in Java, Python, JavaScript, C, C++ and .NET can share the same broker.
The broker is often called "ActiveMQ Classic" to tell it apart from Apache Artemis (formerly ActiveMQ Artemis), which became a separate Apache top-level project on 19 November 2025. This page is about the ActiveMQ broker. Its official documentation is at activemq.apache.org; this handbook is an independent guide and is not part of the Apache project.
What does ActiveMQ do?
Applications that use ActiveMQ send messages to a named destination on the broker instead of calling each other. The broker holds each message until a consumer takes it. That gives you three things a direct HTTP or RPC call does not:
- Decoupling. A sender only needs the broker address and a destination name. The receiving service can be rewritten, moved or scaled out without the sender changing.
- Buffering. When consumers are slow or offline, messages wait on the broker. Persistent messages are written to a store on disk, which is KahaDB by default since ActiveMQ 5.4.
- Load sharing and fan-out. A queue spreads messages across competing consumers; a topic copies each message to every active subscriber.
How ActiveMQ works
An ActiveMQ deployment is one or more broker processes. Each broker opens transport connectors, which are network listeners for a given protocol. Out of the box the broker listens for OpenWire, ActiveMQ's own wire protocol, on port 61616, and the web console runs on port 8161. In the current 6.4.0, 6.3.3 and 5.19.12 configurations the AMQP, STOMP, MQTT and WebSocket connectors are present in conf/activemq.xml but commented out, so you enable only the protocols you need (see ActiveMQ ports).
A message moves through the broker in three steps:
- A producer connects to the broker, opens a session and sends a message to a destination, for example a queue named
orders. - The broker stores the message (on disk if it is persistent) and dispatches it to consumers of that destination.
- A consumer receives the message and acknowledges it. If a queue consumer closes without acknowledging a message, the broker redelivers it to another consumer.
Queues and topics
ActiveMQ uses the two JMS destination types. The official FAQ describes a queue as having load-balancer semantics and a topic as publish/subscribe:
| Queue | Topic | |
|---|---|---|
| Model | Point-to-point | Publish/subscribe |
| Who receives a message | Exactly one consumer | Every subscriber with an active subscription |
| No consumer connected | The message waits until a consumer is available | Subscribers without an active subscription do not get it |
| Typical fit | Jobs, commands, work distribution | Events, notifications, status updates |
The message queue page covers both models in more depth.
Main features
- JMS support: full JMS 1.1 and partial JMS 2.0 and Jakarta Messaging 3.1, with a full client implementation including JNDI.
- Protocols: OpenWire for Java, C, C++ and C# clients, plus AMQP 1.0, STOMP (including over WebSockets) and MQTT.
- Persistence: KahaDB, a file-based store local to the broker, or JDBC.
- High availability: brokers can be paired in a master/slave setup over shared storage, so a standby takes over if the active broker fails.
- Scaling out: a network of brokers moves messages between nodes to follow consumer demand.
- Destination features: message groups, virtual destinations, wildcards and composite destinations.
- Transactions: transient, persistent, transactional and XA messaging (see XA transactions).
- Deployment: usually a standalone process, but the broker can also be embedded in a Java application or used as an in-memory JMS provider for unit tests.
- Integration: Apache Camel routes can run on the broker, and Spring support lets you configure ActiveMQ inside Spring applications (see ActiveMQ with Spring Boot).
What is ActiveMQ used for?
Any time one program needs to hand work or information to another without waiting for it, a broker fits. Common patterns:
- Background work. A web application puts jobs (send an email, render a report) on a queue and a pool of workers takes them one at a time. Adding workers adds capacity.
- Event distribution. One service publishes "order created" to a topic; billing, shipping and analytics each subscribe without the publisher knowing they exist.
- Mixed-language integration. A Java service and a Python or Node.js program exchange messages through AMQP or STOMP on the same broker.
- Devices and browsers. The project points to MQTT for IoT devices and to STOMP over WebSockets for web applications.
- Existing JMS and Jakarta EE applications. ActiveMQ ships JCA resource adapters, so application servers can use it for inbound and outbound messaging.
- Testing. An embedded, in-memory broker lets JMS code run in unit tests without a separate server.
If you are weighing ActiveMQ against other brokers, see ActiveMQ vs RabbitMQ and ActiveMQ vs Kafka. For the general idea behind all of them, see what is a message broker.
ActiveMQ and Artemis: two brokers
ActiveMQ (Classic) is the long-established broker with the familiar JMS-based addressing model. Apache Artemis is a different broker with full Jakarta Messaging 3.1 support; its first release under the new name was 2.50.0 in January 2026, and the current release is 2.57.0. The ActiveMQ Classic vs Artemis page explains the split and how to choose.
Current versions and Java requirements
From the ActiveMQ download page, as of 6 December 2026:
| Series | Status | Latest release | Java | JMS API |
|---|---|---|---|---|
| 6.4.x | Active | 6.4.0 (27 Oct 2026) | 17 to 25 | Jakarta (jakarta.jms) |
| 6.3.x | Active | 6.3.3 (27 Oct 2026) | 17 to 25 | Jakarta (jakarta.jms) |
| 5.19.x | Active | 5.19.12 (27 Oct 2026) | 11 to 22 | javax (javax.jms) |
| 6.2.x, 5.18.x | Inactive (end of life) | 6.2.10, 5.18.7 | No further updates | - |
The full release history, and how to tell which version you run, is on the ActiveMQ versions page.
How to get started
- Install the broker on Linux, Windows or macOS: install ActiveMQ. Download it only from the official download page on activemq.apache.org.
- Run it in a container: ActiveMQ in Docker.
- Send and receive your first messages: ActiveMQ tutorial.
- Prefer not to run brokers yourself? Amazon MQ is a managed service for ActiveMQ Classic and RabbitMQ brokers: Amazon MQ.
A short history
ActiveMQ became an Apache top-level project in January 2007. This domain, activemq.org, was the project's original home, and the 2006 archive of those pages is kept at /site/ for history; the instructions there are out of date. In November 2025 the ActiveMQ project split in two, with Artemis leaving to form Apache Artemis.
If you searched for "Apache MQ" or "ApacheMQ", note that the Apache Software Foundation runs several messaging projects, among them ActiveMQ, Artemis, Kafka and RocketMQ. Check which one a document or job posting means before you follow its instructions.
Frequently asked questions
What is ActiveMQ used for?
ActiveMQ passes messages between applications so they do not call each other directly. Common uses are spreading background jobs across workers with a queue, broadcasting events to several services with a topic, and connecting Java and non-Java programs through AMQP, STOMP or MQTT.
Is Apache ActiveMQ free and open source?
Yes. ActiveMQ is open source software from the Apache Software Foundation, released under the Apache License 2.0.
Is ActiveMQ the same as ActiveMQ Artemis?
No. Artemis is a different broker that was developed under the ActiveMQ project and became its own Apache top-level project, Apache Artemis, on 19 November 2025. ActiveMQ, often called ActiveMQ Classic, continues as a separate product.
Is ActiveMQ a JMS provider?
Yes. ActiveMQ fully supports JMS 1.1 and partially supports JMS 2.0 and Jakarta Messaging 3.1. The 6.x series uses the jakarta.jms API and 5.19.x uses javax.jms.
What port does ActiveMQ use?
Clients connect over OpenWire on port 61616 by default, and the web console is at http://localhost:8161/admin. AMQP, STOMP, MQTT and WebSocket use their own ports once you enable those connectors.
Related guides
- ActiveMQ Artemis vs ActiveMQ Classic: differences and migration
- What is a message broker?
- ActiveMQ tutorial: send and receive your first messages
- How to install ActiveMQ on Ubuntu, Windows and macOS
- ActiveMQ vs RabbitMQ: features, protocols and when to use each
- All handbook guides
From the 2006 archive
The original ActiveMQ documentation on these topics, kept as it was published here in 2004–2007. It describes ActiveMQ 4.x and older.
Sources
- Apache ActiveMQ home page activemq.apache.org
- ActiveMQ Classic: features activemq.apache.org
- Download ActiveMQ (series status and Java versions) activemq.apache.org
- ActiveMQ FAQ: How does a Queue compare to a Topic activemq.apache.org
- ActiveMQ: KahaDB activemq.apache.org
- Apache Artemis: ActiveMQ PMC voted to establish Apache Artemis project artemis.apache.org
- Default conf/activemq.xml in ActiveMQ 6.4.0 (GitHub) github.com
- Amazon MQ Developer Guide: What is Amazon MQ? docs.aws.amazon.com