Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 45696 invoked from network); 2 Mar 2010 11:05:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Mar 2010 11:05:34 -0000 Received: (qmail 17306 invoked by uid 500); 2 Mar 2010 11:05:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 17283 invoked by uid 500); 2 Mar 2010 11:05:30 -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 17275 invoked by uid 99); 2 Mar 2010 11:05:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 11:05:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of cmoulliard@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-ww0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Mar 2010 11:05:19 +0000 Received: by wwb34 with SMTP id 34so52144wwb.32 for ; Tue, 02 Mar 2010 03:04:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JKoIhto85VGunCFUXtxgwQr6Y4XMCw96pV/jhe7eQg8=; b=FiBiYw9gOJXpVTa3Cfg7gbl9HwvH1oCjZ8B/KrjNxuOdkukQKcVCIFuS+RJSVW3TYM KswB/tWBzgjTYRmAu/s0PEkQ/0b8rNdMDzJA07vpxIpnxFUTXkBKWc1jjPr3dkkMr8ES Q8GboYj6LO8Qs4byALAUVMh7UIcVhUHlIBiyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=k73qN6Cw0ehVtC9qARuFaKvuT64bVsGfY1hVqpc42Gj36QEmPdVbNrT7YQTzMh6ET5 kU3wfn4u/fHBYfqoddrs59ygp1eZqNJ8taEej+nXHZchSU53WFq2dJEPEfv4Hxjcszwf DQijk8H0bdc+Dc2SocvRBREKXvOs/O/fwumHs= MIME-Version: 1.0 Received: by 10.216.86.16 with SMTP id v16mr4025679wee.162.1267527899469; Tue, 02 Mar 2010 03:04:59 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Mar 2010 12:04:59 +0100 Message-ID: Subject: Re: Question : camel-cometd - jetty & resourceBase From: Charles Moulliard To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org It works fine if I unzip the bundle content and call it using the resourceB= ase : from("direct:input").to("cometd://localhost:8282/service/test?resourceBase= =3D./data/cache/bundle195/webapp") but this is not an acceptable solution as we have to know which bundle will contain the webapp project and unzip it. Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=3D&gid=3D2447439&trk=3Danet_ug_hm On Tue, Mar 2, 2010 at 11:15 AM, Charles Moulliard w= rote: > Hi, > > The camel-cometd component uses a Jetty property resourceBase to > define the location of the web application resources. This works fine > when deployed on a traditional Web Application Server but not at all > on OSGI server because the webapp directory is part of the bundle.jar > file > > When we look in debug mode to the SMX4 log, we see that jetty > registers the webapp directory under the root name of the OSGI server. > > =A0 | service.jetty.internal.JCLLogger =A0 85 | started > org.mortbay.jetty.servlet.Context@ecaa5f{/,file:/D:/Temp/apache-servicemi= x-4.1.0-SNAPSHOT/webapp} > > Of course, the webapp directory is part of the bundle deployed under > ${karaf.home}/cache/data/195/bundle.jar > > I have tried to disable the resourceBase in the camel-cometd without > success too. > > Does anybody has an idea on How to run/deploy a bundle on SMX4/Karaf > containing a camel route using cometd:// ? > > Kind regards, > > Charles Moulliard > Senior Enterprise Architect > Apache Camel Committer > > ***************************** > blog : http://cmoulliard.blogspot.com > twitter : http://twitter.com/cmoulliard > Linkedlin : http://www.linkedin.com/in/charlesmoulliard > > Apache Camel Group : > http://www.linkedin.com/groups?home=3D&gid=3D2447439&trk=3Danet_ug_hm >