I am Trying to connect to multiple QueueManagers in IBM MQ Explorer using java. I am able to connect to single Queue Manager and send nd receive data from it but when i try to connect to a different Queue Manager and send data from first queue manager to second queue manager i get an error like:
o.s.j.l.DefaultMessageListenerContainer : Setup of JMS message listener invoker failed for destination 'Q4' - trying to recover.
Cause: JMSWMQ2008: Failed to open MQ queue 'Q4'.;
nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2085' ('MQRC_UNKNOWN_OBJECT_NAME').
This is my Code: https://github.com/PakaluPap1to/MQ_MultiQueue
I have added configuration for both the QueueManagers and their respective connection factories and JMS Operations.
I am very new to MQ and I am Not sure where i am going wrong, can anyone please help me to resolve this and guide me how can i achieve the required functionality?
Any help would be greatly appreciated, Thanks !
Updated the Code to connect to multiple queue managers and exchange data between them. https://github.com/PakaluPap1to/MQ_MultiQueue/tree/master
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.