RabbitMQ Java client library

The RabbitMQ Java client library allows Java code to interface with RabbitMQ. The library is platform neutral; the binary distributions listed below differ only in the version of Java they are intended for use with. Please see the specification page for more information on AMQP interoperation and standards-conformance.

The library is open-source, and is triple-licensed under

You will need a RabbitMQ node to use with the client library.

Version

The current release of the RabbitMQ Java client is 4.0.0.

Adding Library Dependency

The recommended way to get started using the RabbitMQ Java AMQP in your project is with a dependency management system.

The snippet below can be copied and pasted into your build if you're using Maven:

<dependency>
  <groupId>com.rabbitmq</groupId>
  <artifactId>amqp-client</artifactId>
  <version>4.0.0</version>
</dependency>

Alternatively, if you're using Gradle:

dependencies {
  compile 'com.rabbitmq:amqp-client:4.0.0'
}

We attempt to upload new versions of the Java client on the day of release; however the Maven servers are sometimes unavailable, so there may be a delay of a few days between a new release and its appearance in the central Maven repository. Please be patient.

Download the library and documentation

The library

The library is available in compiled form, and as source.

DescriptionDownload  
Binary, compiled for JDK 6 or newer amqp-client-4.0.0.jar(Signature)
Source code amqp-client-4.0.0-sources.jar(Signature)

Please see checking signatures for details on how to verify the signatures on our packages, and the build page for instructions on compiling from source-code.

The documentation

Please refer to the API guide.

The Javadoc documentation is browseable on-line, or you can download it for off-line use:

DescriptionDownload  
A JAR file containing generated Javadoc documentation amqp-client-4.0.0-javadoc.jar(Signature)

Other versions

Consult the archive if you want to download a version of the RabbitMQ Java Client library or documentation other than the above.

OSGi Ready

The RabbitMQ Java client jar comes ready with an OSGi manifest (with bundle version and package dependencies correctly set) so it can be deployed in an OSGi environment. This means it is no longer necessary to bundleise or OSGiefy the jar prior to using it in an OSGi container.

GitHub repositories

The RabbitMQ Java client depends on the code generation library module. Please see the build page for instructions on compiling from source code.

For information on how to work with the RabbitMQ GitHub repositories, please see this page.

SnapshotRepository checkout commandRepository overview
rabbitmq-java-clientgit clone https://github.com/rabbitmq/rabbitmq-java-client.gitBrowse source
rabbitmq-codegengit clone https://github.com/rabbitmq/rabbitmq-codegen.gitBrowse source