|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Client reconnect - MQCONNX |
« View previous topic :: View next topic » |
Author |
Message
|
emiranda |
Posted: Wed Mar 07, 2018 10:03 am Post subject: Client reconnect - MQCONNX |
|
|
 Disciple
Joined: 21 Nov 2002 Posts: 196 Location: Dublin, Ireland
|
Hi,
I'm trying to demostrate a sample client application automatically reconnecting to a queue manager.
I'm using IBM provided sample program amqscbfc:
amqscbfc -m <qmgr> -r r <queue>
When I stop the queue manager the program gets MQRC 2009 but it doesn't stop, it stays "hanging" there. After restarting the qmgr, I put messages again to the queue, but amqscbfc doesn't get messages anymore.
I didn't configure anything for the client reconection, as I was expecting that just connecting with MQCONNX and cno.Option = MQCNO_RECONNECT would suffice.
Am I missing something?
Thanks. _________________ Warm Regards,
EM |
|
Back to top |
|
 |
PaulClarke |
Posted: Wed Mar 07, 2018 2:59 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Client reconnect depends heavily on the client realising that it has lost the connection. This can take some time depending on all sorts of things such as the version of MQ on either end and how they are configured. Generally speaking the latest the version of MQ the better it is at detecting. Similarly the smaller the heartbeat interval the faster it detects.
There are many appends here and elsewhere discussing how to configure your client for error detection discussing things like heartbeat interval, keep alive, share conv etc
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
hughson |
Posted: Thu Mar 08, 2018 1:03 am Post subject: Re: Client reconnect - MQCONNX |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
emiranda wrote: |
When I stop the queue manager the program gets MQRC 2009 but it doesn't stop, it stays "hanging" there. |
What command did you use to stop your queue manager?
Cheers,
Morag _________________ Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Mar 08, 2018 4:50 am Post subject: Re: Client reconnect - MQCONNX |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
emiranda wrote: |
When I stop the queue manager the program gets MQRC 2009 but it doesn't stop, it stays "hanging" there. After restarting the qmgr, I put messages again to the queue, but amqscbfc doesn't get messages anymore. |
For clarity, in future posts please avoid pronouns like 'it'.
What is the first 'it'? What is the second 'it'? What does 'there' in 'hanging there' mean? _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
emiranda |
Posted: Thu Mar 08, 2018 7:34 am Post subject: Re: Client reconnect - MQCONNX |
|
|
 Disciple
Joined: 21 Nov 2002 Posts: 196 Location: Dublin, Ireland
|
bruce2359 wrote: |
emiranda wrote: |
When I stop the queue manager the program gets MQRC 2009 but it doesn't stop, it stays "hanging" there. After restarting the qmgr, I put messages again to the queue, but amqscbfc doesn't get messages anymore. |
For clarity, in future posts please avoid pronouns like 'it'.
What is the first 'it'? What is the second 'it'? What does 'there' in 'hanging there' mean? |
I got it, bruce2359!
hughson wrote: |
emiranda wrote: |
When I stop the queue manager the program gets MQRC 2009 but it doesn't stop, it stays "hanging" there. |
What command did you use to stop your queue manager?
Cheers,
Morag |
That's it ! I added "-r" to the endmqm command and worked fine.
Thank you all guys! _________________ Warm Regards,
EM |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|