Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 72546 invoked from network); 14 Aug 2009 21:57:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Aug 2009 21:57:51 -0000 Received: (qmail 10866 invoked by uid 500); 14 Aug 2009 21:57:58 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10792 invoked by uid 500); 14 Aug 2009 21:57:58 -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 10782 invoked by uid 99); 14 Aug 2009 21:57:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2009 21:57:58 +0000 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; Fri, 14 Aug 2009 21:57:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD230234C052 for ; Fri, 14 Aug 2009 14:57:35 -0700 (PDT) Message-ID: <611379323.1250287055838.JavaMail.jira@brutus> Date: Fri, 14 Aug 2009 14:57:35 -0700 (PDT) From: "Igor Katkov (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQNET-179) TcpTransport.cs consumes transport-related exceptions In-Reply-To: <380698013.1250283155749.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQNET-179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53623#action_53623 ] Igor Katkov commented on AMQNET-179: ------------------------------------ Yes, you may just throw it, that would break a lot of existing source code though. :-( So what I did is the lesser evil - those who are interested in handling it will do {code} conFactory = new ConnectionFactory(URI); connection = (Connection) conFactory.CreateConnection(); connection.ExceptionListener += ConnectionExceptionListener; {code} those who are not, just carry on P.S. FailoverTransport is completely broken in .NET client. I spent a day trying to make it work or even fix it. That's why I turned back to TcpTransport, implemented a hook and handled re-connection on upper application level. Not to mention that it does not support almost any configuration params from URL How-to see that FailoverTransport is completely broken - a. 1. Connect c# to a broker via failovertransport to activemq:failover:tcp://localhost:61616 2. Send a few messages 3. Restart the broker, while keep sending messages 4. Bingo! Your client hangs b. 1. Stop your broker 2. Connect c# to a broker via failovertransport to activemq:failover:tcp://localhost:61616 3. Bingo! Connection will never be made > TcpTransport.cs consumes transport-related exceptions > ----------------------------------------------------- > > Key: AMQNET-179 > URL: https://issues.apache.org/activemq/browse/AMQNET-179 > Project: ActiveMQ .Net > Issue Type: Bug > Components: ActiveMQ Client > Affects Versions: 1.1.0 > Reporter: Igor Katkov > Assignee: Timothy Bish > Fix For: 1.2.0 > > Attachments: patchfile.txt > > > TcpTransport.cs consumes transport-related exceptions > Therefore there is no way to handle broken connections in the client application. > To reproduce: > 1. Connect c# to a broker via tcp transport > 2. Send a few messages > 3. Restart the broker > 4. Bingo! Client application thinks connection is up, while it's in fact broken for good. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.