Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 78046 invoked from network); 10 Sep 2010 02:04:29 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 02:04:29 -0000 Received: (qmail 81395 invoked by uid 500); 10 Sep 2010 02:04:29 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 81348 invoked by uid 500); 10 Sep 2010 02:04:28 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 81340 invoked by uid 99); 10 Sep 2010 02:04:28 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 02:04:28 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-px0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 02:04:04 +0000 Received: by pxi12 with SMTP id 12so849290pxi.32 for ; Thu, 09 Sep 2010 19:03:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=azqQw/3VKN0oJojBQ7Zt4Ts1lGdCTWOnntze8oH4NDY=; b=sJa8W86BUWrZzjZHsAyFiGrxQC9Y9VC5l+eG1xvfGdgKqmzljVJETkQEpGD7z4AdxJ X5OQ8Hc3R1lLR3Ghb3i45o87eCX9/23TUDzZGO9kgH9uxnlh4HJP9nf+sDgrWZCeKgTf mxzymXijuB9CMmIt8w+6YREENrZXyx19cr4fk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=mMUqX4wntMVW2LhCz+a8qIjf5uFim+Y/n/TwZMZKrwOg6OzGQpLBLwyf9pI3Fb5FdT 7/1y1SXQrsV4lqVGLsCY+72w7oD1qsWaZKsyd6xXO/VdpUSAOCbo01zlO5jfWz6zAhYn 074P+gLYidFeTfew3hvPSR5YGuqYmrQXSfDEs= Received: by 10.114.109.14 with SMTP id h14mr105431wac.186.1284084223351; Thu, 09 Sep 2010 19:03:43 -0700 (PDT) Received: from [192.168.0.158] ([125.33.121.200]) by mx.google.com with ESMTPS id c24sm3434148wam.7.2010.09.09.19.03.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 09 Sep 2010 19:03:42 -0700 (PDT) Message-ID: <4C8991F5.6070208@gmail.com> Date: Fri, 10 Sep 2010 10:03:33 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: configure failover for weblogic jms queue using jndi template References: <1284082728685-2834365.post@n5.nabble.com> In-Reply-To: <1284082728685-2834365.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org As Camel leverages the Spring to do the JMS related work, can you try to search for the failover configure from Spring doc or Weblogic doc ? Willem On 9/10/10 9:38 AM, vvchoy wrote: > > Hi > > my system is running camel 1.6.2.2 on servicemix 3.4.0.5. I have configured > camel to connect to my application through weblogic jms queue. Everything is > fine except that if my application is down (ie. web broker is down), I > cannot deploy nor start my service unit. > I notice that there is a way to configure camel to retry the connection > instead of throwing an exception --- through the "failover" transport. > Unfortunately, I cannot find an example showing how to do so with weblogic > configuration using jndi template. Does anyone know how to do so ? Would > appreciate your help very much. > > Following is my bean configuration within camel_context.xml file: > > > > ref="webLogicDestinationResolver"/> > > > class="org.springframework.jndi.JndiObjectFactoryBean"> > > > > > class="org.springframework.jndi.JndiTemplate"> > > > key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory > t3://host:port > > > > > class="org.springframework.jms.support.destination.JndiDestinationResolver"> > > > > Thanks a lot >