Skip to content

adzubla/qmgrs

Repository files navigation

Spring Boot Application with two JMS servers

Related dev.to article.

This is an example using two JMS servers in the same Spring Boot Application.

Start brokers

To run this example you need to start two instaces of IBM MQ, with QM1 and QM2:

./qm1_start.sh
./qm2_start.sh

Build

mvn clean install

Consumer

Execute consumer.

./consumer.sh

Producers

Open two producers, each one in its own terminal:

# Uses QM1
./producer1.sh

# Uses QM2
./producer2.sh

Type anything and it will be sent to the queue.

Dynamic creation of listeners

Execute the dynamice version os the consumer instead.

./dynamic-consumer.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published