Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 54780 invoked from network); 27 Sep 2010 21:27:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Sep 2010 21:27:03 -0000 Received: (qmail 35421 invoked by uid 500); 27 Sep 2010 21:27:02 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 35390 invoked by uid 500); 27 Sep 2010 21:27:02 -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 35382 invoked by uid 99); 27 Sep 2010 21:27:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 21:27:01 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Sep 2010 21:27:01 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8RLQeHg011535 for ; Mon, 27 Sep 2010 21:26:41 GMT Message-ID: <8667479.34681285622800858.JavaMail.jira@thor> Date: Mon, 27 Sep 2010 17:26:40 -0400 (EDT) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Subject: [jira] Commented: (AMQ-2944) Failover transport always re-connects to the first configured transport instead of the original transport speficied in the connection url In-Reply-To: <11544000.30671285342601142.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2944?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=62172#action_62172 ] Timothy Bish commented on AMQ-2944: ----------------------------------- The code is working as designed, the first transport in the config file is reported to the client upon connection and that value updates the FailoverTransport. > Failover transport always re-connects to the first configured transport instead of the original transport speficied in the connection url > ----------------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQ-2944 > URL: https://issues.apache.org/activemq/browse/AMQ-2944 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.1 > Reporter: Rob Arciere > Attachments: activemq.xml > > > I am using a single broker configured to accept both tcp and ssl connections using the configuration below > > > > > The clients are configured to use the failover transport over ssl to connect to a single broker (e.g. URL: failover:ssl://Host:61616). Upon startup the client correctly connects to the broker on port 61617 via ssl. I then simulate a network outage and the transport is interrupted and waits for the connection to become available. After a short amount of time the Broker detects inactivity on the connection and then drops the connection (viewed via JMX and Jconsole). When the network connection is restored, the client reconnects to broker on port 61616 using tcp instead of ssl on port 61617 (not good if you require ssl encryption). > It appears that the ordering of the transportConnectors in the activemq.xml file affects which transport is used upon resumption of an interrupted failover transport. It turns out that upon reconnection the first defined transport will always be used regardless of what transport was specified in the original client connection url. Changing the ordering to the following fixes the problem and upon reconnection the ssl transport will be used. However, the reverse issue will occur for clients that originally connection via tcp transport where upon reconnection they will connect via ssl transport instead of tcp. > > > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.