spring-rabbitmq-multi-publish

A Spring Boot library that allows applications to publish to multiple connections.

License

License

GroupId

GroupId

com.budjb
ArtifactId

ArtifactId

spring-rabbitmq-multi-publish
Last Version

Last Version

0.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

spring-rabbitmq-multi-publish
A Spring Boot library that allows applications to publish to multiple connections.
Project URL

Project URL

https://github.com/budjb/spring-rabbitmq-multi-publish
Source Code Management

Source Code Management

https://github.com/budjb/spring-rabbitmq-multi-publish

Download spring-rabbitmq-multi-publish

How to add to project

<!-- https://jarcasting.com/artifacts/com.budjb/spring-rabbitmq-multi-publish/ -->
<dependency>
    <groupId>com.budjb</groupId>
    <artifactId>spring-rabbitmq-multi-publish</artifactId>
    <version>0.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/com.budjb/spring-rabbitmq-multi-publish/
implementation 'com.budjb:spring-rabbitmq-multi-publish:0.1.4'
// https://jarcasting.com/artifacts/com.budjb/spring-rabbitmq-multi-publish/
implementation ("com.budjb:spring-rabbitmq-multi-publish:0.1.4")
'com.budjb:spring-rabbitmq-multi-publish:jar:0.1.4'
<dependency org="com.budjb" name="spring-rabbitmq-multi-publish" rev="0.1.4">
  <artifact name="spring-rabbitmq-multi-publish" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.budjb', module='spring-rabbitmq-multi-publish', version='0.1.4')
)
libraryDependencies += "com.budjb" % "spring-rabbitmq-multi-publish" % "0.1.4"
[com.budjb/spring-rabbitmq-multi-publish "0.1.4"]

Dependencies

runtime (6)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-validation jar
org.codehaus.groovy : groovy jar
org.codehaus.groovy : groovy-json jar
org.slf4j : slf4j-api jar
com.rabbitmq : amqp-client jar
io.micrometer : micrometer-core jar

Project Modules

There are no modules declared in this project.

Multi-Connection RabbitMQ Publisher for Spring

This is a library that allows multiple RabbitMQ connections to be configured in an application and message routing between those various connections.

Getting Started

The library is hosted on jcenter and Maven Central. To use the library, use the following dependency.

build.gradle:

dependencies {
    implementation 'com.budjb:spring-rabbitmq-multi-publish:0.1.0'
}

A connection is configured using an AMQP URI. For example, in application.properties:

rabbitmq.connections.my-connection.uri=amqp://foo:bar@localhost/vhost

Multiples of these connections may be configured, and each must have a unique name. The name of the connection is provided in the configuration key after the rabbitmq.connections part. Therefore, in the previous example, the name of the connection is my-connection.

Changelog

0.1.4

  • Fix log line that previously used Groovy string interpolation.

0.1.3

  • Fixed a bug where getting a default connection context simply returned the first configured connection instead of looking for the first default connection.

0.1.2

  • Fix an issue where an RPC call returns the request body instead of the response body.

0.1.1

  • Change metrics to use micrometer.

0.1.0

  • Initial release with tests.
  • Added a ConnectionProvider to abstract the functionality of building a RabbitMQ connection.
  • Add a README file.

0.0.1

  • Initial release of functional code.

Versions

Version
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.1