Independent ActiveMQ handbook · archive of the 2004–2007 project site
Independent guide. Not the Apache ActiveMQ project site and not affiliated with the Apache Software Foundation. ActiveMQ and Apache are trademarks of the ASF. Official documentation: activemq.apache.org.

activemq.org › Handbook › ActiveMQ vs RabbitMQ: features, protocols and when to use each

Handbook

ActiveMQ vs RabbitMQ: features, protocols and when to use each

Checked against ActiveMQ Classic 6.4.0, 6.3.3 and 5.19.12 and Apache Artemis 2.57.0 on . Independent guide; sources are listed at the end. Official documentation: activemq.apache.org and artemis.apache.org.

ActiveMQ and RabbitMQ are both open-source message brokers: they accept messages, store them, and deliver each queued message to one consumer. The main differences are that ActiveMQ is a Java broker built around the JMS (Jakarta Messaging) API under the Apache License 2.0, while RabbitMQ runs on Erlang, routes messages through exchanges and bindings, is licensed under the Mozilla Public License 2.0, and also offers a replayable log type called streams.

"ActiveMQ" now covers two separate brokers. ActiveMQ Classic (newest release 6.4.0, 27 October 2026) is the original broker, still developed at activemq.apache.org. Apache Artemis (formerly ActiveMQ Artemis) became its own Apache top-level project on 19 November 2025, with its own site at artemis.apache.org; its current release is 2.57.0 (9 September 2026). They differ enough that this page compares all three. For how Classic and Artemis relate, see ActiveMQ Classic vs Artemis.

ActiveMQ vs RabbitMQ at a glance

ActiveMQ ClassicApache ArtemisRabbitMQ
Current release6.4.0 (27 Oct 2026); 6.3.x and 5.19.x also active2.57.0 (9 Sep 2026)4.4.1 (16 Nov 2026)
RuntimeJava; 6.4.x runs on Java 17 to 25Java 17 or laterErlang/OTP
LicenseApache License 2.0Apache License 2.0Mozilla Public License 2.0
Native protocolOpenWireCoreAMQP 0-9-1 originally; AMQP 1.0 is core since 4.0
Other protocolsAMQP 1.0, STOMP, MQTT 3.1 and 3.1.1AMQP 1.0, MQTT 3.1.1 and 5, STOMP, OpenWireMQTT 3.1, 3.1.1 and 5.0, STOMP, RabbitMQ Streams
JMS / Jakarta MessagingFull JMS 1.1; partial JMS 2.0 and Jakarta Messaging 3.1Full JMS 1.1, 2.0 and Jakarta Messaging 3.1Through the RabbitMQ JMS client library
Addressing modelJMS queues and topics, plus virtual and composite destinationsAddresses with anycast or multicast routing to queuesExchanges and bindings routing to queues or streams
High availabilityShared storage (shared file system or JDBC)Shared storage or network replicationQuorum queues (Raft) and replicated streams
Spreading loadNetworks of brokersClusters with server-side load balancingClusters; super streams for partitioned logs
PersistenceKahaDB (default since 5.4) or JDBCAppend-only file journal (default) or JDBCPer queue type; quorum queues write to disk before acting
Replayable logNoNoYes, streams
Web consoleWeb console at /admin on port 8161Management console built on HawtioManagement plugin UI on port 15672

Messaging model: JMS destinations vs exchanges

ActiveMQ Classic uses the JMS model directly. Producers send to a named queue or topic. A queue gives each message to exactly one consumer, which makes it a load balancer; a topic gives a copy to every subscriber that was subscribed when the message arrived. On top of that, Classic adds virtual destinations (logical names that map onto one or more physical destinations), composite destinations, wildcards, and JMS selectors, which filter a subscription with SQL-92 expressions on message headers and properties.

Apache Artemis has a protocol-agnostic address model. Messages are sent to an address, and the routing type decides where they go: anycast delivers to a single queue on the address (point-to-point), and multicast delivers to every queue on the address (publish-subscribe). JMS queues and topics, AMQP nodes, MQTT topics and STOMP destinations are all mapped onto these addresses and queues.

RabbitMQ separates routing from storage. Publishers send to an exchange, and bindings decide which queues or streams receive a copy. Direct exchanges match the routing key exactly, topic exchanges match routing-key patterns, fanout exchanges copy to every bound destination, and headers and plugin-provided exchange types add more options. The general concepts behind queues and topics are covered in message queues explained.

Protocols and client libraries

All three brokers list AMQP 1.0, STOMP and MQTT among their protocols, which gives you some room to switch brokers later. Each broker maps those protocols onto its own model, though, so behavior and supported features are not identical.

  • ActiveMQ Classic has its own wire protocol, OpenWire, used by the Java client and by the C++ (CMS) and .NET (NMS) clients, plus STOMP, AMQP 1.0 and MQTT for other languages. The project lists clients in JavaScript, C, C++, Python and .NET. See STOMP and OpenWire.
  • Apache Artemis ships five protocol modules: AMQP, MQTT, STOMP, OpenWire and its own Core protocol. Applications using the OpenWire JMS client shipped with ActiveMQ 5.12.x or later can be used with Artemis, which helps when moving from Classic.
  • RabbitMQ was built for AMQP 0-9-1, made AMQP 1.0 a core protocol in 4.0, and now recommends AMQP 1.0 for new applications. MQTT (3.1, 3.1.1 and 5.0) and its Streams protocol are supported natively through plugins, and STOMP through a plugin. The RabbitMQ team maintains AMQP 1.0 clients for Java, .NET, Go, Python and JavaScript.

For the two AMQP versions and which broker speaks which, see AMQP 0-9-1 vs 1.0.

JMS support

If your applications use the JMS or Jakarta Messaging API, this is often the deciding factor. Artemis has full Jakarta Messaging 3.1, JMS 2.0 and JMS 1.1 support. ActiveMQ Classic has full JMS 1.1 support and partial JMS 2.0 and Jakarta Messaging 3.1 support; the 6.x series uses the jakarta.jms API and 5.19.x uses javax.jms. Both include support for transactions and XA (see XA transactions).

RabbitMQ is not a JMS broker by design, but the RabbitMQ JMS client implements the JMS specification on top of the RabbitMQ Java client, with library lines for JMS 2.0 and JMS 3.0, and is meant to be used with RabbitMQ's JMS topic exchange plugin.

High availability and clustering

ActiveMQ Classic provides high availability through shared storage: a master and one or more slaves share either a file system (such as a SAN) or a JDBC database, and a slave takes over when the master fails. For scale, Classic connects brokers into a network of brokers, which distributes queues and topics across brokers so clients can connect to any of them.

Apache Artemis supports two HA policies, shared store and replication, where a backup copies the primary's data over the network. Separately, Artemis clusters group brokers to share message processing load, balance messages across nodes according to where consumers are, and redistribute messages to avoid starving a node. Artemis also offers asynchronous mirroring for disaster recovery.

RabbitMQ builds availability into queue types rather than broker pairs. A RabbitMQ cluster shares users, virtual hosts, queues, exchanges and bindings across nodes. Quorum queues replicate each queue with the Raft consensus algorithm and are the documented default for highly available queues; streams are always replicated; classic queues are not replicated since RabbitMQ 4.0, when classic mirrored queues were removed.

Persistence and large backlogs

ActiveMQ Classic stores persistent messages in KahaDB, a file-based store local to the broker and the default since 5.4, or in a database through JDBC. Artemis ships two options: its default file journal, which is append-only, and a JDBC store. Artemis also pages messages out of memory when an address grows, so a queue with millions of messages can run with limited memory.

In RabbitMQ persistence depends on the queue type. Quorum queues write all data to disk before acting on it, streams are an append-only disk log, and classic queues keep a message store and an on-disk index.

Ordering and consumer features

Queues are dispatched in order, but once several consumers share a queue, messages are processed concurrently and processing order is no longer guaranteed. Each broker has its own tools for keeping related messages in order:

  • ActiveMQ Classic: exclusive consumers (the broker sends all of a queue's messages to one consumer and fails over to another if it dies) and message groups, which use the standard JMSXGroupID header to send all messages of a group to the same consumer while spreading groups across consumers.
  • Apache Artemis: message grouping on the same JMSXGroupID header, exclusive queues that dispatch to one consumer at a time, and last-value queues that keep only the newest message for each key.
  • RabbitMQ: FIFO queues, single active consumer, and super streams for ordered consumption within each partition. Message priorities and redelivery can change delivery order.

All three push messages to consumers and cap how many sit unacknowledged on the client: Classic with a prefetch limit, Artemis with a consumer window (1 MiB by default for Core clients), and RabbitMQ with channel prefetch.

Replay and streaming

Only RabbitMQ has a log-style data structure. A RabbitMQ stream keeps messages after they are read, so consumers can start from the beginning, an offset or a timestamp until per-stream retention removes the data.

Queues in ActiveMQ Classic and Artemis are not built for replay: in Artemis's words, the normal behavior is that acknowledged messages are removed from the queue. Both brokers have narrower replay features aimed at subscribers who connect late: Classic's retroactive consumers and subscription recovery policy replay recent messages from a timed or fixed-size buffer, and Artemis's retroactive addresses preserve a fixed number of messages for queues created later. If replay of long histories is central to your design, also read ActiveMQ vs Kafka.

Management and monitoring

ActiveMQ Classic includes a web console at http://localhost:8161/admin, secured since 5.8 with a default login of admin/admin that you should change, and exposes its internals through JMX (see the ActiveMQ web console and ActiveMQ monitoring). Artemis ships a management console built on Hawtio that talks to the broker through Jolokia, and by default it accepts connections from localhost only. RabbitMQ's management plugin, included in the distribution, provides a web UI on port 15672, an HTTP API and the rabbitmqadmin tool, and the RabbitMQ documentation recommends Prometheus for long-term metrics.

Licensing, support and managed services

ActiveMQ Classic and Apache Artemis are Apache Software Foundation projects under the Apache License 2.0; the official documentation is at activemq.apache.org and artemis.apache.org. RabbitMQ is free under the Mozilla Public License 2.0, and Broadcom offers a commercial edition with 24/7 support. For ActiveMQ support options, see ActiveMQ support. If you would rather not run a broker yourself, Amazon MQ is a managed service for ActiveMQ Classic and RabbitMQ (see Amazon MQ).

Which one should you use?

  • Existing Java/JMS applications: an ActiveMQ broker is the natural fit. Pick Artemis if you need full JMS 2.0 or Jakarta Messaging 3.1 support, replication-based HA or Artemis-style clustering; stay on Classic if your applications and operations are built around it, and plan upgrades within the active 6.4.x, 6.3.x and 5.19.x series.
  • Routing that changes at runtime, such as consumers binding to routing-key patterns or headers: RabbitMQ's exchanges were designed for this. Classic's virtual destinations and selectors, and Artemis's address model with filters, cover many of the same cases.
  • Replay or long retention on the same broker: RabbitMQ streams. Neither ActiveMQ broker keeps a replayable log.
  • Replicated queues without shared storage: RabbitMQ quorum queues or Artemis replication. Classic's HA relies on a shared file system or database.
  • Mixed protocols (AMQP 1.0, MQTT, STOMP): all three handle them. Check the MQTT version you need: Classic supports MQTT 3.1 and 3.1.1, Artemis lists 3.1.1 and 5, and RabbitMQ lists 3.1, 3.1.1 and 5.0.
  • License policy: if Apache 2.0 is required, choose an ActiveMQ broker; if MPL 2.0 is acceptable, all three are open.

If you are also weighing a log-based platform, see RabbitMQ vs Kafka and what a message broker is.

Frequently asked questions

What is the difference between ActiveMQ and RabbitMQ?

ActiveMQ is a Java message broker built around the JMS API and licensed under Apache 2.0, available as ActiveMQ Classic or Apache Artemis. RabbitMQ runs on Erlang, routes messages through exchanges and bindings into queues or streams, and is licensed under the Mozilla Public License 2.0.

Is ActiveMQ better than RabbitMQ?

Neither is better in general. ActiveMQ suits Java applications that use JMS or Jakarta Messaging, while RabbitMQ suits broker-side routing through exchanges, Raft-replicated quorum queues and replayable streams.

Does RabbitMQ support JMS?

Yes, through the RabbitMQ JMS client, which implements the JMS specification on top of the RabbitMQ Java client and is used together with the JMS topic exchange plugin. ActiveMQ Classic and Apache Artemis support JMS natively.

Can ActiveMQ and RabbitMQ clients use the same protocol?

Yes. ActiveMQ Classic, Apache Artemis and RabbitMQ all support AMQP 1.0, STOMP and MQTT, although each broker maps these protocols onto its own model, so behavior is not identical.

Should I compare RabbitMQ with ActiveMQ Classic or Artemis?

Compare it with the one you would actually run. ActiveMQ Classic (6.4.0) and Apache Artemis (2.57.0), which became a separate Apache project in November 2025, differ in JMS support, high availability and clustering.

Related 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

  1. Apache ActiveMQ: home page activemq.apache.org
  2. ActiveMQ Classic: overview and features activemq.apache.org
  3. Apache Artemis: home page artemis.apache.org
  4. Apache Artemis: Address Model artemis.apache.org
  5. Apache Artemis: Protocols and Interoperability artemis.apache.org
  6. RabbitMQ: Which protocols does RabbitMQ support? www.rabbitmq.com
  7. RabbitMQ: Quorum Queues www.rabbitmq.com
  8. RabbitMQ: JMS Client www.rabbitmq.com