Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 21367 invoked from network); 18 Mar 2011 20:34:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Mar 2011 20:34:39 -0000 Received: (qmail 47058 invoked by uid 500); 18 Mar 2011 20:34:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 47009 invoked by uid 500); 18 Mar 2011 20:34:38 -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 47000 invoked by uid 99); 18 Mar 2011 20:34:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 20:34:38 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (athena.apache.org: error in processing during lookup of Kevin.Urciolo@ngc.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2011 20:34:32 +0000 Received: from joe.nabble.com ([192.168.236.151]) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1Q0gN9-0006sT-NX for users@activemq.apache.org; Fri, 18 Mar 2011 13:34:11 -0700 Date: Fri, 18 Mar 2011 13:34:11 -0700 (PDT) From: urciolo To: users@activemq.apache.org Message-ID: <1300480451709-3388387.post@n4.nabble.com> Subject: Failover with SSL Does Not Reconnect Properly MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit We are using ActiveMQ 5.4.1. It seems when using SSL to connect to a remote broker (while having a non-SSl local broker), reconnections always go to localhost and not the remote broker. This is only the case with the SSL transport. The TCP transport seems to work correctly. One thing I noticed is the FailoverTransport.processNewTransports(control.isRebalanceConnection(), control.getConnectedBrokers()) has control.getConnectedBrokers() returning localhost, when I am guessing it should be the remote broker. This causes a new URL to be generated to localhost and added to the list, which then causes a connect to be made to this new URL. Any idea what is wrong? Stack Trace Below: ------------------ FailoverTransport.add(boolean, URI[]) line: 625 FailoverTransport.updateURIs(boolean, URI[]) line: 1068 FailoverTransport.processNewTransports(boolean, String) line: 288 FailoverTransport.handleConnectionControl(ConnectionControl) line: 268 FailoverTransport$3.onCommand(Object) line: 180 WireFormatNegotiator.onCommand(Object) line: 113 InactivityMonitor.onCommand(Object) line: 217 SslTransport(TransportSupport).doConsume(Object) line: 83 SslTransport.doConsume(Object) line: 91 SslTransport(TcpTransport).doRun() line: 219 SslTransport(TcpTransport).run() line: 201 Thread.run() line: 662 -- View this message in context: http://activemq.2283324.n4.nabble.com/Failover-with-SSL-Does-Not-Reconnect-Properly-tp3388387p3388387.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.