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 » How to get queue manager to invalidate dead connections?

Post new topic  Reply to topic
 How to get queue manager to invalidate dead connections? « View previous topic :: View next topic » 
Author Message
arincer
PostPosted: Thu Nov 10, 2005 6:20 am    Post subject: How to get queue manager to invalidate dead connections? Reply with quote

Newbie

Joined: 09 Nov 2005
Posts: 1

First some preliminaries. I'm using version 3.3 of the MQ client libraries on a Debian Linux 3.1 system. The version of MQ server I'm using is also 3.3, and that is running on a Mandrake 8.1 system.

I am MQGET()'ing messages from a queue. I have the MQGMO_SYNCPOINT option specified, so these messages are not permanently removed from the queue unless I do an explicit MQCMIT(). Messages are placed onto the queue with the MQPER_PERSISTENT option set so that messages will survive a restart of the queue manager.

The problem I have come across is the following. When I kill the network connection (via pulling the ethernet plug) between the client and the server before the MQCMIT() call is made, I would expect that the message that was just dequeued to be available again when I restore the network connection since the queue manager never got the command to do a commit. However, the message is not. I've noticed that the message does not become available again until I restart the queue manager.

Examining the status of the queue using the "runmqsc" when I kill the network connection, I noticed that the queue manager still maintains an open handle on the queue. (Doing a DISPLAY QSTATUS on the queue shows that the IPPROCS attribute is greater than 0). I believe that this is the source of the problem.

Is there a way to force the queue manager to invalidate the handle right away when the network connection between the client and the server goes down?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 10, 2005 6:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I'm quite sure you mean version 5.3, as there is no version 3.3.

The connection should time out, and then the messages should roll back.
_________________
I am *not* the model of the modern major general.
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 » How to get queue manager to invalidate dead connections?
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.