b_patil
b_patil

Reputation: 41

Queue manager disconnect is hanging forever

The below mq manaager disconnect call hangs forever. We see the logentry just before the disconnect call and after that its not coming back.

MQ Distributed library and Version: amqmdnet - 9.2.0.6

     if (queueOut != null)
            {
                LogMessage("DisconnectMQ: Closing Put Connection");
                try
                {
                    queueOut.Close();
                }
                catch (Exception ex)
                {
                    string message = "DisconnectMQ: An error occured;
                    LogException(message, ex);
                }
                finally
                {
                    queueOut = null;
                }
            }
            //Close all MQ QueueManager connections
            if (queueManagerIn != null)
            {
                try
                {
                    LogMessage("queueManagerIn.Disconnect()");


                    queueManagerIn.Disconnect();
                }
                catch (Exception ex)
                {
                    string message = "DisconnectMQ: An error occured";
                    LogException(message, ex);
                }
                finally
                {
                    queueManagerIn = null;
                }
            }

Upvotes: 0

Views: 50

Answers (0)

Related Questions