HI Marag
I am using Durable Subscription to connect. As i said before,It started After updating the MQ server with version 9.3.if suppose the the MQ server having maintenance activity or application is restarted at client side it should connect automatically with existing subscription as we existing subscription are there.but it won't connect.No other application using this subscriptions
Please suggest
Thanks
Original Message:
Sent: 3/21/2025 5:55:00 AM
From: Morag Hughson
Subject: RE: Facing 3155 Error with MQ client version 9.3
Hi Sandeep,
Have you determined which application currently has your subscription in use? Your post here suggests you don't think that the subscription is in use - you ask how to reconnect to it. I believe you are getting reason code MQRCCF_SUBSCRIPTION_IN_USE (3155) because there is an application currently running that is connected to the subscription. When your instance of the application tries to connect to the subscription it is refused because it is not allowed to have more than one application connected to the subscription at a time.
Please can you review my original answer and discover the application that currently has hold of your subscription.
Your replies suggest you think that your application code can somehow be changed to allow you to reconnect to a subscription that is already being used by another application. What do you imagine should happen to the other application if this happened?
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
------------------------------
Original Message:
Sent: Thu March 20, 2025 08:40 AM
From: Sandeep Bongale
Subject: Facing 3155 Error with MQ client version 9.3
Hi Morag
I am using IBM MQ client 9.1.0.7 and the server is having version 9.3 in my .net application. I have IBM.XMS dll to handle to code of create connection client subscription and etc but
It shows 3155 subscriptions in use. As check in MQ document there is no any separate reconnect method if subscription is already there.so why it is showing 315 error.
Can you please arrange any .net developer who can help me out to check the issue.
Thanks
Sandeep
Original Message:
Sent: 3/17/2025 5:40:00 AM
From: Morag Hughson
Subject: RE: Facing 3155 Error with MQ client version 9.3
Hi Sandeep,
I don't know what sample code you want - it sounds like your problem is that there is already an instance of your application running using that subscription hence the MQRCCF_SUBSCRIPTION_IN_USE (3155). If that instance of the application is not supposed to be running, then perhaps you can stop it so that your instance can run instead.
If it's not another instance of your application, then perhaps you need to make sure that your subscription names are unique for each application?
Have you used the commands I suggested to discover where this extra instance of the application came from?
I don't know why using a different channel name allowed your application to start - but perhaps the channel name forms part of your subscription name? Without seeing any of your output from the commands I suggested, I would have no way of knowing and could only guess.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Mon March 17, 2025 02:35 AM
From: Sandeep Bongale
Subject: Facing 3155 Error with MQ client version 9.3
HI ,
I am using IBM 9.1.0.7 client and MQ server version is 9.3 this issue is started when IBM MQ server is updated to 9.3
i am using .net application to connect the server
can you please provide details of sample code to how the MQ server id application gets restarted using the same channel.
Currently it showing 3155 subscription is in use showing
if change the channel name it get connect successfully.but existing client and it subscription remain there
Please suggest.
Thanks
Sandeep
Original Message:
Sent: 3/12/2025 5:53:00 PM
From: Morag Hughson
Subject: RE: Facing 3155 Error with MQ client version 9.3
Hi Sandeep,
MQ Reason code 3155 means MQRCCF_SUBSCRIPTION_IN_USE. This may be all you need to know but in case it doesn't help, remember that you can use IBM MQ administrative commands to see which durable subscriptions currently have an active connection associated with them, i.e. are "in use".
You can issue MQSC commands like the ones below, with a tool such as runmqsc (or your favourite other MQSC tool if you have one).
DISPLAY SBSTATUS('your-sub-name') ACTCONN
Then using the value returned in the ACTCONN attribute, find the last 16 characters (substring starting at 33 for length 16) and issue this command
DISPLAY CONN(last-part-of-actconn) ALL
The APPLTAG attribute in this output will show you the application name, the USERID field will show you the user it is running under. If it is running over a network connection, the CHANNEL and CONNAME fields will also be relevant. If it is locally bound, the PID and TID will help to narrow it down to the actual process on the machine.
Cheers,
Morag
------------------------------
Morag Hughson
MQ Technical Education Specialist
MQGem Software Limited
Website: https://www.mqgem.com
Original Message:
Sent: Wed March 12, 2025 05:10 AM
From: Sandeep Bongale
Subject: Facing 3155 Error with MQ client version 9.3
Below are Error Details
During execution of the specified method an exception was thrown by another component.
See the linked exception for more information.
IBM.XMS.XMSException: CWSMQ0006E: An exception was received during the call to the method wmgsubscriptionEngine.OpenOurablesubscription
( #3): CompCode: 2, Reason: 3155.
During execution of the specified method an exception was thrown by another component.
See the linked exception for more information.
at IBM.XMS.Client.WMQ.MqV6Impl.WmqSubscriptionEngine.OpenDurableSubscription(wmqV6Sessions
------------------------------
Sandeep Bongale
------------------------------