ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Client reconnect - MQCONNX

Post new topic  Reply to topic
 Client reconnect - MQCONNX « View previous topic :: View next topic » 
Author Message
emiranda
PostPosted: Wed Mar 07, 2018 10:03 am    Post subject: Client reconnect - MQCONNX Reply with quote

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
View user's profile Send private message
PaulClarke
PostPosted: Wed Mar 07, 2018 2:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
hughson
PostPosted: Thu Mar 08, 2018 1:03 am    Post subject: Re: Client reconnect - MQCONNX Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
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
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Thu Mar 08, 2018 4:50 am    Post subject: Re: Client reconnect - MQCONNX Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
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
View user's profile Send private message
emiranda
PostPosted: Thu Mar 08, 2018 7:34 am    Post subject: Re: Client reconnect - MQCONNX Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Client reconnect - MQCONNX
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.