Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 1415 invoked from network); 10 Jul 2008 06:32:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 06:32:21 -0000 Received: (qmail 98017 invoked by uid 500); 10 Jul 2008 06:32:21 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 97988 invoked by uid 500); 10 Jul 2008 06:32:21 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 97977 invoked by uid 99); 10 Jul 2008 06:32:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jul 2008 23:32:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 06:31:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4451D234C160 for ; Wed, 9 Jul 2008 23:32:00 -0700 (PDT) Message-ID: <507315312.1215671520274.JavaMail.jira@brutus> Date: Wed, 9 Jul 2008 23:32:00 -0700 (PDT) From: "Rakesh (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQCPP-188) ActiveMQ message consumer waiting for receive to complete is not closing... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ActiveMQ message consumer waiting for receive to complete is not closing... --------------------------------------------------------------------------- Key: AMQCPP-188 URL: https://issues.apache.org/activemq/browse/AMQCPP-188 Project: ActiveMQ C++ Client Issue Type: Bug Components: CMS Impl Affects Versions: 2.2 Environment: Windows Reporter: Rakesh Assignee: Nathan Mittler I have a created an application which creates a connection and consumers using ActiveMQ C++ Client, after running the application consumer is waiting for the recive to complete. when we shutdown the application we close the connection, but close call of connection does not notify all the consumers (who is waiting for the message to be recived). I have seen in the close method of ActiveMQConsumer after purging all the messages there is no call to notifyAll on object unconsumedMessages because of which consumers waiting for the receive does not does not come out of the wait call, which is causing our application not to shutdown. we modified the close call the notify all the consumers after purging all the unconsumed mesages and our application is working fine. Following is the changes that i have made in ActiveMQConsumer.cpp class void ActiveMQConsumer::close(){ .... .... // Purge all the pending messages try{ purgeMessages(); } catch ( ActiveMQException& ex ){ if( !haveException ){ ex.setMark( __FILE__, __LINE__ ); error = ex; haveException = true; } } //Start of additional code synchronized( &unconsumedMessages ) { unconsumedMessages.notifyAll(); } //End of additional code .... .... } can anyone let me know why this has not been done? I think this should be done. please explain if I am missing something -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.