Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 78953 invoked from network); 22 Dec 2010 20:05:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 20:05:39 -0000 Received: (qmail 66383 invoked by uid 500); 22 Dec 2010 20:05:39 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 66311 invoked by uid 500); 22 Dec 2010 20:05:39 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 66303 invoked by uid 99); 22 Dec 2010 20:05:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 20:05:39 +0000 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of qpid.user.2@gmail.com designates 209.85.216.177 as permitted sender) Received: from [209.85.216.177] (HELO mail-qy0-f177.google.com) (209.85.216.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 20:05:31 +0000 Received: by qyk27 with SMTP id 27so6389965qyk.15 for ; Wed, 22 Dec 2010 12:05:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=sI/QRmKeRTVexcJ437MTbww13Nhgq253RmuHGPkgX/w=; b=vSm/0R/GtvDSGNFfREjmwS4+WwM0eDSuT0ALHh3K8WlZmyEMOaUDl/VzFyzPLK/7kv 5cUIebmeYR+FVH8/8YKWs85YH1U32K/rXqoWQWqVSJdcexCd6idDBsi4zaEs/p3p5MXX BjBgWuU2730AoSkr5ZRlxDGK3YKKgYVP7yIv8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=g7CwVqcqWYGLeJygcAHid3wpsJhTiJLiXIHx1nGT0CyDlZ5QxF+4IolrSNf3YOeSKu vqg4KH7qqxwKpAzXEsie+AfUqzPhJvPii/QU1eLjGnSqIKHJhd4OfF3TmwWaRPKAZ1iU k+qrMzNzUEKwygKmusvM0BB2WQp+dkDafl9fE= MIME-Version: 1.0 Received: by 10.224.67.15 with SMTP id p15mr6652161qai.347.1293048310324; Wed, 22 Dec 2010 12:05:10 -0800 (PST) Received: by 10.220.72.140 with HTTP; Wed, 22 Dec 2010 12:05:10 -0800 (PST) In-Reply-To: <1707779802.54306.1293047222408.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> References: <1707779802.54306.1293047222408.JavaMail.root@zmail06.collab.prod.int.phx2.redhat.com> Date: Wed, 22 Dec 2010 15:05:10 -0500 Message-ID: Subject: Re: C# Qpid Connection Lost From: qpid user 2 To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=0015175cb03e36dcf7049805457f X-Virus-Checked: Checked by ClamAV on apache.org --0015175cb03e36dcf7049805457f Content-Type: text/plain; charset=ISO-8859-1 Thanks Chuck, The root cause of the issue I am facing is similar to the one mentioned in the Jira you linked me to. I managed to make my sending procedure indifferent from the status of the connection using a synchronization of the messages and connection. My problem is that further on, options for maintaining back the connection is limited. If the connection to the broker is lost, ("reconnect" option is true), the connection.Open() call does not return properly and the reconnection process get stocked. Also particularly the .IsOpen member does not reflect correct connection status in some cases. Is this a known issue? I am using Qpid 0.6. Thanks, Sam P.S: I can further investigate and provide some suggestions. On Wed, Dec 22, 2010 at 2:47 PM, Chuck Rolke wrote: > Hi Sam, > > Currently the connection returns no information callback about its > connected/disconnected status besides error log messages and a final > exception when the connection attempts fail. The connection.IsOpen member > indicates True or False if the connection is actually connected. > > A similar issue is approached from a different angle in > https://issues.apache.org/jira/browse/QPID-2978 "Disconnected operation is > a pain", where the initial connection attempts hang the thread creating the > connection. You may add a suggestion to that Jira or create a new one > suggesting your improvement to the Messaging API. > > ----- Original Message ----- > > From: "qpid user 2" > > To: "users" > > Sent: Wednesday, December 22, 2010 12:52:57 PM > > Subject: C# Qpid Connection Lost > > Hi guys, > > > > I have got a question on handling connection to the broker. I am using > > C# > > and the dotnet bindings libraries. I use "reconnect" option for my > > Connection class. My question is that is there any sort of > > notification > > mechanism that I can handle when connection to broker is lost? some > > sort of > > callback or exception thrown when ever connection is lost. > > > > Help would be appreciated as usual. > > > > Thanks, > > Sam > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:users-subscribe@qpid.apache.org > > --0015175cb03e36dcf7049805457f--