Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 70897 invoked from network); 15 Jan 2011 08:19:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2011 08:19:46 -0000 Received: (qmail 20718 invoked by uid 500); 15 Jan 2011 08:19:46 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 20568 invoked by uid 500); 15 Jan 2011 08:19:34 -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 20003 invoked by uid 99); 15 Jan 2011 08:19:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Jan 2011 08:19:30 +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; Sat, 15 Jan 2011 08:19:29 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0F8J72i001083 for ; Sat, 15 Jan 2011 08:19:07 GMT Message-ID: <16299060.383961295079547816.JavaMail.jira@thor> Date: Sat, 15 Jan 2011 03:19:07 -0500 (EST) From: "Raman Gupta (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-3137) Outbound bridges should handle remote connectivity problems at startup In-Reply-To: <8217212.383941295079405204.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-3137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Raman Gupta updated AMQ-3137: ----------------------------- Attachment: bridge_outbound_remote_reconnect.patch Patch > Outbound bridges should handle remote connectivity problems at startup > ---------------------------------------------------------------------- > > Key: AMQ-3137 > URL: https://issues.apache.org/jira/browse/AMQ-3137 > Project: ActiveMQ > Issue Type: Improvement > Components: Connector > Affects Versions: 5.4.2 > Reporter: Raman Gupta > Attachments: bridge_outbound_remote_reconnect.patch > > > With a JMS-to-JMS bridge, one can configure JmsQueueConnector or JmsTopicConnector in an outbound bridge mode. In this mode, the "foreign" JMS provider is a remote service and therefore subject to disconnections, failures, etc. > While the connectors do support reconnecting to a remote provider, the connectors will not start up correctly if the remote service is not available at start-up time. > The attached patch (with test cases) solves this problem by separating the initialization of the local and remote parts of the bridge. A failure during initialization of the remote broker is not considered fatal, since the bridge attempts to reconnect to the foreign provider when a message is received from the local broker anyway. > This logic could also be implemented for inbound bridges but slightly more difficult in that it'll require a separate Thread to manage the connectivity state to the remote i.e. if the system fails to connect to the remote at startup time, a separate Thread can be created to periodically continue to try to connect. This would also apply for inbound bridges that lose their connection due to the remote losing connectivity or being recycled. This has not been done yet. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.