How to connect to multiple IBM queue connections having different QM, Host, Port from Java

60 Views Asked by At

I want to clear data from single queue which is hosted in 3 different queue managers with different host and port. Is there anyway to configure with single jmsTemplate that connects to 3 Queue managers using mqQueueConnectionFactory? Can anyone help on this as I am unable to get examples

Currently using ibm-mq-allclient:9.1.3 library

1

There are 1 best solutions below

2
Roger On

You will need to create 3 different Queue Connection Factories (QCF) and run the program with each different QCF.

Why reinvent the wheel when there are many freely available open-source programs that already do that?