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 IndexIBM MQ API SupportTCP Keepalives from an XMS application

Post new topicReply to topic Goto page Previous  1, 2
TCP Keepalives from an XMS application View previous topic :: View next topic
Author Message
hughson
PostPosted: Tue May 03, 2016 2:57 am Post subject: Reply with quote

Shaman

Joined: 09 May 2013
Posts: 726
Location: Bay of Plenty, New Zealand

300 seconds is the default, so that suggests your SVRCONN has not been changed from the default and your client application is also picking up the default.

This means that any network problems should be detected within 360 seconds. If you want it detected sooner than that, you will need to get the SVRCONN changed as well as changing it in your code, since the negotiated value (the one shown on DISPLAY CHSTATUS) is the less frequent interval taken from both numbers.

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
damuka
PostPosted: Tue May 03, 2016 3:11 am Post subject: Reply with quote

Newbie

Joined: 02 May 2016
Posts: 9

How can I set the HBINT attribute in a XMS application? I don't see any property for that. It seems to me that a disconnection at the server end won't be detected by the client if it doesn't send HEARTBEAT to the server.
Back to top
View user's profile Send private message
hughson
PostPosted: Tue May 03, 2016 3:19 am Post subject: Reply with quote

Shaman

Joined: 09 May 2013
Posts: 726
Location: Bay of Plenty, New Zealand

Hmm, it looks like the XMS API does not have a way of setting HeartbeatInterval, so you'll have to look into using the CCDT if you want to lower it.

You've already proven it is set though, and so both the client and server will be Heartbeating each other. You have the default 300 seconds set on the client side by doing nothing.

One other thing that is needed to ensure this heartbeating from both ends is the use of SHARECNV(1 or greater). Are you able to check that at the server end?

Cheers
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
damuka
PostPosted: Mon May 09, 2016 1:16 am Post subject: Reply with quote

Newbie

Joined: 02 May 2016
Posts: 9

Hi Morag,

I have finally had to install a lab MQ Server to do my tests.

When I set channel attributes directly in the code, despite the SHARECNV being 10, the client doesn't send HEARTBEAT to the server.

In order to use the CCDT, I defined a CLNTCONN on the server with the same name as the SRVCONN and I copied the generated CCDT to the client.

In this case, I noticed that 2 independent TCP connections are established between the client and the server. But on both connections HEARTBEAT are sent from the server to the client and the client still doesn't send HEARTBEAT to the server. Am I missing something ?

Thank you in advance for your help.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon May 09, 2016 4:36 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17443

SHARECNV should be 0 or 1 - but really always 1 unless there's a very specific reason.

10 is the default but not the right value.
_________________
Read, Think, Try, Repeat
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum IndexIBM MQ API SupportTCP Keepalives from an XMS application
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.