Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RabbitMQ Java client

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE2
GPL-2.0
LICENSE-GPL2
Unknown
LICENSE-MPL-RabbitMQ
NotificationsYou must be signed in to change notification settings

rabbitmq/rabbitmq-java-client

Maven CentralBuild Status

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

RabbitMQ Server Compatibility

This client releases are independent of RabbitMQ server releases and can be used with RabbitMQ server4.x and3.x (note that the3.x series isout of community support).

Minimum Supported JDK Version

They require Java 8 or higher.

Dependency (Maven Artifact)

Stable

Maven

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

Gradle

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

Snapshots

Maven

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

Snapshots are available on the Sonatype OSS snapshot repository:

pom.xml
<repositories>  <repository>    <id>ossrh</id>    <url>https://oss.sonatype.org/content/repositories/snapshots</url>    <snapshots>      <enabled>true</enabled>    </snapshots>    <releases>      <enabled>false</enabled>    </releases>  </repository></repositories>

Gradle

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

Snapshots are available on the Sonatype OSS snapshot repository:

build.gradle
repositories {  maven { url'https://oss.sonatype.org/content/repositories/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.gitcd rabbitmq-java-client./mvnw test-compile jshell:run...import com.rabbitmq.client.*ConnectionFactory cf = newConnectionFactory()Connection c =cf.newConnection()...c.close()/exit

Building from Source

Getting the Project and its Dependencies

git clone git@github.com:rabbitmq/rabbitmq-java-client.gitcd rabbitmq-java-clientmake 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. Therabbitmqctl.binsystem property must point to therabbitmqctl 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

Versioning

This library usessemantic versioning.

Support

See theRabbitMQ Java libraries support pagefor the support timeline of this library.

License

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

This means that the user can consider the library to be licensed underany 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

Topics

Resources

License

Unknown and 3 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE2
GPL-2.0
LICENSE-GPL2
Unknown
LICENSE-MPL-RabbitMQ

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors66

Languages


[8]ページ先頭

©2009-2025 Movatter.jp