Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 95959 invoked from network); 15 Jun 2010 13:24:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Jun 2010 13:24:32 -0000 Received: (qmail 58797 invoked by uid 500); 15 Jun 2010 13:24:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58702 invoked by uid 500); 15 Jun 2010 13:24:31 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 58694 invoked by uid 99); 15 Jun 2010 13:24:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 13:24:30 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gy0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jun 2010 13:24:23 +0000 Received: by gyf3 with SMTP id 3so6011284gyf.2 for ; Tue, 15 Jun 2010 06:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=YT2gV3iLs+B9AFI6WXovMnJfJDnAIqKu60TdRJFvXpM=; b=Yak56vkU9TdoKVP8abU/4VUOkkncod8UlsYwLan3cKnenqNL7iEwwrh5C2ZG4VcKnX iSBnGf9qn9anq1aDDMKMb4pXtVYvgEJCD79Ysbh4EZxSF4jWbaZx+Jpr4McoJ85I5/8J 9rj3eWJfRrYbbAkAM0Brq2uZN9oyYWsnyksdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=aX92x9BOeaaIyhHUF2CkhOCNx+KgFNTGYkFzizHWoM/WNoIOnhB4+WnIF3YmRw60Dc QYrrUoxB8GTl/Ukd+xkHs8TYNN6FvWCYOpl94llqHqQlyiTCGHiZUOJeAk1nB5VogjAt 5kQGV/tn14nyBL6Ru4h23VHiut1uZsNu4JVhU= Received: by 10.229.217.208 with SMTP id hn16mr2870036qcb.87.1276608239860; Tue, 15 Jun 2010 06:23:59 -0700 (PDT) Received: from [192.168.2.150] (c-76-21-195-19.hsd1.va.comcast.net [76.21.195.19]) by mx.google.com with ESMTPS id v37sm18992058qce.24.2010.06.15.06.23.57 (version=SSLv3 cipher=RC4-MD5); Tue, 15 Jun 2010 06:23:58 -0700 (PDT) Subject: Re: how to detect on server side when queue manager has gone away? From: Timothy Bish To: users@activemq.apache.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 15 Jun 2010 09:23:56 -0400 Message-ID: <1276608236.2501.1.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 (2.28.3-1.fc12) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2010-06-15 at 10:53 +0100, andrew.marlow@uk.bnpparibas.com wrote: > I am using AMQ-cpp without the failover feature, good though that feature > is. I am concerned with hwo to detect when the Q mgr has gone away. On the > client side I have found that if I send a message when the broker is no > longer running I get an exception. This enables me to test and recover on > the client side. But I am not sure what to do on the server side. > > The client side is easy because I can send a special message which I can > rig the server to ignore. But the server is just sitting on a consumer > receive and does not seem to get an exception when the broker goes away. > Unlike the client I can't write a message. The server only writes replies > to requests and does so using a temporary Q. So I wonder what cn be > done.... > > Regards, > > Andrew Marlow What version of ActiveMQ-CPP are you using? I'd expect that if you are using the 3.1 releases and haven't disabled the inactivity monitor that the server would get an exception on its receive call when the inactivity monitor times out the connection. Regards Tim. > > ___________________________________________________________ > This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is prohibited. > > Please refer to http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H for additional disclosures.