Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techguy-bhushan/apacheartemiscluster
Apache Artemis / Redhat AMQ 7 Cluster with Spring Boot
https://github.com/techguy-bhushan/apacheartemiscluster
artemis cluster spring-boot
Last synced: 4 months ago
JSON representation
Apache Artemis / Redhat AMQ 7 Cluster with Spring Boot
- Host: GitHub
- URL: https://github.com/techguy-bhushan/apacheartemiscluster
- Owner: techguy-bhushan
- Created: 2017-12-11T18:41:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T17:33:06.000Z (over 3 years ago)
- Last Synced: 2023-08-03T22:38:35.936Z (over 1 year ago)
- Topics: artemis, cluster, spring-boot
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 0
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# ApacheArtemisCluster Connected with Spring
* Download [Apache Artemis](https://activemq.apache.org/artemis/download.html)
or Download []JBoss AMQ](https://developers.redhat.com/products/amq/download)
* create 2 artemis server
* use [broker/server0/broker.xml](https://github.com/techguy-bhushan/ApacheArtemisCluster/blob/master/broker/server0/broker.xml) and [broker/server1/broker.xml](https://github.com/techguy-bhushan/ApacheArtemisCluster/blob/master/broker/server1/broker.xml) (replace your broker.xml with given xml file )
* start both artemis server
* Run ArtemisTest under test folderthis implementation is based on clustered static discovery
Please change the user name and password with your server username and password in application.properties
```
amq.username=admin
amq.password=admin
```Here use are using **STRICT** value of message-load-balancing in broker.xml.
In case of STRICT incoming message will be round robin'd even though the same queues on the other nodes of the cluster may have no consumers at all,
or they may have consumers that have non matching message filters (selectors).
Note that Apache ActiveMQ Artemis will not forward messages to other nodes if there are no queues of the same name on the other nodes, even if this parameter is set to STRICT.
Using STRICT is like setting the legacy forward-when-no-consumers parameter to true.**NOTE**: HERE we are using 2 nodes inside of cluster so we are using 2 listener in ArtemisConfiguration
here is [reason](https://stackoverflow.com/questions/47779767/apache-artemis-need-to-created-many-connection-as-many-server-node-with-strict-c/47780473?noredirect=1#comment82554004_47780473)