GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rabbitmq/rabbitmq-java-client: RabbitMQ Java client

BranchesTags
Open more actions menu

Latest commit

 

History

6,502 Commits
6,502 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.mvn
.mvn
 
 
ci
ci
 
 
doc/channels
doc/channels
 
 
src
src
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
GEMINI.md
GEMINI.md
 
 
LICENSE
LICENSE
 
 
LICENSE-APACHE2
LICENSE-APACHE2
 
 
LICENSE-GPL2
LICENSE-GPL2
 
 
LICENSE-MPL-RabbitMQ
LICENSE-MPL-RabbitMQ
 
 
Makefile
Makefile
 
 
README.adoc
README.adoc
 
 
RUNNING_TESTS.md
RUNNING_TESTS.md
 
 
codegen.py
codegen.py
 
 
deploy-javadoc.sh
deploy-javadoc.sh
 
 
generate-observation-documentation.sh
generate-observation-documentation.sh
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 
release-versions.txt
release-versions.txt
 
 

Repository files navigation

RabbitMQ Java Client

Maven Central Build Status

This repository contains source code of the RabbitMQ Java client. The client is maintained by the RabbitMQ team at Broadcom.

RabbitMQ Server Compatibility

This client releases are independent of RabbitMQ server releases and can be used with RabbitMQ server 4.x and 3.x (note that the 3.x series is out of community support).

Minimum Supported JDK Version

This library requires Java 8 or higher.

Dependency (Maven Artifact)

Stable

Maven

pom.xml
<dependency>
    <groupId>com.rabbitmq</groupId>
    <artifactId>amqp-client</artifactId>
    <version>5.37.1</version>
</dependency>

Gradle

build.gradle
compile 'com.rabbitmq:amqp-client:5.37.1'

Snapshots

Maven

pom.xml
<dependency>
    <groupId>com.rabbitmq</groupId>
    <artifactId>amqp-client</artifactId>
    <version>5.37.2-SNAPSHOT</version>
</dependency>

Snapshots are available on the central portal snapshot repository:

pom.xml
<repositories>
  <repository>
    <id>ossrh</id>
    <url>https://central.sonatype.com/repository/maven-snapshots/</url>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
    <releases>
      <enabled>false</enabled>
    </releases>
  </repository>
</repositories>

Gradle

build.gradle
compile 'com.rabbitmq:amqp-client:5.37.2-SNAPSHOT'

Snapshots are available on the central portal snapshot repository:

build.gradle
repositories {
  maven { url 'https://central.sonatype.com/repository/maven-snapshots/' }
  mavenCentral()
}

4.x Series

As of 1 January 2021 the 4.x branch is no longer supported.

Experimenting with JShell

You can experiment with the client from JShell. This requires Java 9 or more.

git clone https://github.com/rabbitmq/rabbitmq-java-client.git
cd rabbitmq-java-client
./mvnw test-compile jshell:run
...
import com.rabbitmq.client.*
ConnectionFactory cf = new ConnectionFactory()
Connection c = cf.newConnection()
...
c.close()
/exit

Building from Source

Getting the Project and its Dependencies

git clone [email protected]:rabbitmq/rabbitmq-java-client.git
cd rabbitmq-java-client
make deps

Building the JAR File

./mvnw clean package -Dmaven.test.skip

Launching Tests with the Broker Running in a Docker Container

Run the broker:

docker run -it --rm --name rabbitmq -p 5672:5672 rabbitmq

Launch "essential" tests (takes about 10 minutes):

./mvnw verify \
    -Drabbitmqctl.bin=DOCKER:rabbitmq \
    -Dit.test=ClientTestSuite,FunctionalTestSuite,ServerTestSuite

Launch a single test:

./mvnw verify \
    -Drabbitmqctl.bin=DOCKER:rabbitmq \
    -Dit.test=DeadLetterExchange

Launching Tests with a Local Broker

The tests can run against a local broker as well. The rabbitmqctl.bin system property must point to the rabbitmqctl program:

./mvnw verify \
       -Dtest-broker.A.nodename=rabbit@$(hostname) \
       -Drabbitmqctl.bin=/path/to/rabbitmqctl \
       -Dit.test=ClientTestSuite,FunctionalTestSuite,ServerTestSuite

To launch a single test:

./mvnw verify \
       -Dtest-broker.A.nodename=rabbit@$(hostname) \
       -Drabbitmqctl.bin=/path/to/rabbitmqctl \
       -Dit.test=DeadLetterExchange

Contributing

See Contributing and How to Run Tests.

Versioning

This library uses semantic versioning.

Support

See the RabbitMQ Java libraries support page for the support timeline of this library.

License

This package, the RabbitMQ Java client library, is triple-licensed under the Mozilla Public License 2.0 ("MPL"), the GNU General Public License version 2 ("GPL") and the Apache License version 2 ("AL").

This means that the user can consider the library to be licensed under any of the licenses from the list above. For example, you may choose the Apache Public License 2.0 and include this client into a commercial product. Projects that are licensed under the GPLv2 may choose GPLv2, and so on.

About

RabbitMQ Java client

www.rabbitmq.com/java-client.html

Topics

javarabbitmq

Resources

Readme

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.3k stars

Watchers

100 watching

Forks

588 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.