Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F7709884 for ; Sun, 9 Oct 2011 08:05:22 +0000 (UTC) Received: (qmail 70838 invoked by uid 500); 9 Oct 2011 08:05:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 70808 invoked by uid 500); 9 Oct 2011 08:05:21 -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 70800 invoked by uid 99); 9 Oct 2011 08:05:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 08:05:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Oct 2011 08:05:16 +0000 Received: by eyh6 with SMTP id 6so35969eyh.32 for ; Sun, 09 Oct 2011 01:04:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=ugS24aD53XinLj/XK53hORGJPi1NOv8beFZIa7hjujE=; b=CRsQ2qdEYiTVzNGmQ0xaKvdHavRHyxSIHiuy7lTEc+C2KOOD+WxgoIdEqd6V+0S6GA wbpaKwiusVchqvMXLBG78VBNYvCGKvNb8QLvxA3Oj4e7LeNJGFNjawAE3goG9FlokzlD oZuxfoOYmsG6JAJoPbP1c7WwQBeTw4U0S8AT4= Received: by 10.213.14.68 with SMTP id f4mr58776eba.123.1318147495372; Sun, 09 Oct 2011 01:04:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.14.3 with HTTP; Sun, 9 Oct 2011 01:04:35 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Sun, 9 Oct 2011 10:04:35 +0200 Message-ID: Subject: Re: Updating cached content without restart? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sat, Oct 8, 2011 at 7:32 PM, Kleczka Peter John wro= te: > Hi > > I am using Spring for my Camel routes. =A0I have an XSLT component that c= alls for the style sheet over HTTP. =A0If that resource changes I have to r= estart ActiveMQ. =A0I read that I could use Camel 2.6 and turn off caching = on the XSLT component, but I wonder if there are other methods to refresh t= his resource. =A0I am using ActiveMQ 5.4.2, and I do want the resource cach= ed, but just want to be able to tell the application to update without a re= start. > I have created a Camel ticket to add a way from JMX to purge the cache so the resource will be re-loaded https://issues.apache.org/jira/browse/CAMEL-4528 > A second part to this question (apologies if this is more appropriate to = an ActiveMQ forum) is that if the web resource is unavailable when I start = ActiveMQ, it seems that I must restart ActiveMQ when the web resource becom= es available again. =A0Is there a way to tell it to retry? > Do you mean using the Camel XSLT component? Afair it loads the resource on up-start and will fail if the resource is unavailable (fail fast). There is no way to configure it to retry later. > > > > > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/