Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/budjb/spring-rabbitmq-multi-publish
https://github.com/budjb/spring-rabbitmq-multi-publish
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/budjb/spring-rabbitmq-multi-publish
- Owner: budjb
- Created: 2019-04-16T19:22:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-06T15:48:29.000Z (over 5 years ago)
- Last Synced: 2023-06-29T23:41:53.043Z (over 1 year ago)
- Language: Java
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```groovy
dependencies {
implementation 'com.budjb:spring-rabbitmq-multi-publish:0.1.0'
}
```A connection is configured using an [AMQP URI](https://www.rabbitmq.com/uri-spec.html).
For example, in `application.properties`:```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.