Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DC7139950 for ; Mon, 14 Nov 2011 09:47:09 +0000 (UTC) Received: (qmail 12354 invoked by uid 500); 14 Nov 2011 09:47:09 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 12248 invoked by uid 500); 14 Nov 2011 09:47:09 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 12240 invoked by uid 99); 14 Nov 2011 09:47:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 09:47:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bjorn.bength@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Nov 2011 09:47:03 +0000 Received: by wyg34 with SMTP id 34so497462wyg.32 for ; Mon, 14 Nov 2011 01:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=zcb+yF+HYSuunQUJoKKtBY7C3Fxpa8RRd3OnYOlwTNo=; b=sMUS8wopNOS0q4uAdVTkH6kcSiHD2xnhHuoLGgkRPinS6TkNM9CPtxmXpizDawai7/ I6tJNpDkKFR8ZPpXqPyCL9e30OvjfkHbaVB0tzaQdssuVo+amOFczM9aXrHDCZ2DR4UW 33/2leh9Ry+4HjjTMuc/tZ4gNPjM9ciIuUNjk= MIME-Version: 1.0 Received: by 10.216.30.202 with SMTP id k52mr1105248wea.46.1321264003158; Mon, 14 Nov 2011 01:46:43 -0800 (PST) Received: by 10.216.175.85 with HTTP; Mon, 14 Nov 2011 01:46:43 -0800 (PST) In-Reply-To: References: <4EBE8A99.2050106@nanthrax.net> <-6082237572495826356@unknownmsgid> Date: Mon, 14 Nov 2011 10:46:43 +0100 Message-ID: Subject: Re: [DISCUSS] Extract camel-validator from camel-core From: =?ISO-8859-1?Q?Bj=F6rn_Bength?= To: dev@camel.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, the more I think of this, the more I prefer a simple solution with just a catalog resource resolver (through xml-resolver). That's because it's (to my knowledge) a de facto standard to map public and system ids and in this case it would be a perfect opportunity to follow the principle of "convention over configuration". However, resolution of the possible (resolved) URIs in the system ids mapping might need something like pax-url or classpath lookup depending on case, if not xml-resolver handles that. Compare with projects like XJC or maven-jaxb2-plugin et.al. where setting a catalog file and optionally a class name of a specialized catalog resolver is common. That would easily be done in camel too, as in my first patch. At least camel should offer such a configuration bean to configure all this and then set this bean as a resourceResolver on the endpoint, but this is overly complex in my opinion. At least one thing or another should be extracted to another camel-component if camel-core is not allowed more dependencies. Regards Bj=C3=B6rn On Mon, Nov 14, 2011 at 7:17 AM, Freeman Fang wrot= e: > Yeah, pax-url absolutely is appropriate here. > > Freeman > On 2011-11-13, at =E4=B8=8A=E5=8D=8810:07, Raul Kripalani wrote: > >> Hi, >> >> Since we are talking OSGi, this looks like an appropriate use case for >> the PAX URL classpath protocol. It provides means to lookup resources >> in any other deployed bundle, either by specifying its symbolic name >> or by performing a container-wide search. >> >> It worked like a charm for me with a use case that involved Facelets >> and loading taglibs from other bundles under Karaf. >> >> -- Raul. >> >> On 13 Nov 2011, at 00:02, "Christian M=C3=BCller" >> wrote: >> >>> We found another library/dependency which JB can bundle... :-) I will >>> provide a patch for it later... >>> I discussed this with JB that this should of cure also work in OSGI in >>> different scenarios: >>> 1) the XSD is packaged together with the route in an OSGI bundle >>> 2) the XSD is packages in another OSGI bundle (because it is used in >>> multiple different OSGI bundles) >>> 3) the XSD is located somewhere in the file system >>> 4) the XSD is available somewhere over http >>> >>> All this should be possible. For 2), the user may have to use fragment >>> bundles or "require bundle". I will work on it later... >>> >>> Best, >>> Christian > > --------------------------------------------- > Freeman Fang > > FuseSource > Email:ffang@fusesource.com > Web: fusesource.com > Twitter: freemanfang > Blog: http://freemanfang.blogspot.com > > > > > > > > > >