Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam Using IBM whenever simultaneous users log in to the IBM MQ,when the second user comes and try to acces the getqueue iam getting 2100,MQrc_Object Alresy Exists.Kindly provide some suggestion

Connect to MQ Manager:


mqQueueManager = new MQQueueManager(mqQueueManagerName);


Open Put Queue:
mqPutQueue = mqQueueManager.AccessQueue(mqRequestQueueName, MQC.MQOO_INQUIRE |
MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING);



Open The get Queue getting error Second user trys to enter,the Firts users session in the MQ will be deleted even after that Second user unable to enter,until we close the application:


mqGetQueue = mqQueueManager.AccessQueue(mqModelQueueName, MQC.MQOO_INPUT_SHARED ,
mqQueueManagerName, mqReplyQueueName, "");

I dont know how to delete the dynamic Queue.
Posted

Hi ,
i solved Like For the Dynamic Queue Name mqReplyQueueName-> Each time it comes i randomly generated an new dynamic queue name.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900