Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 8230 invoked from network); 1 Jul 2009 19:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Jul 2009 19:07:02 -0000 Received: (qmail 62637 invoked by uid 500); 1 Jul 2009 19:07:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 62602 invoked by uid 500); 1 Jul 2009 19:07:12 -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 62592 invoked by uid 99); 1 Jul 2009 19:07:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 19:07:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2009 19:07:00 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MM58g-0000W2-SO for users@camel.apache.org; Wed, 01 Jul 2009 12:06:38 -0700 Message-ID: <24295482.post@talk.nabble.com> Date: Wed, 1 Jul 2009 12:06:38 -0700 (PDT) From: sriramch To: users@camel.apache.org Subject: Re: Multiple camelContext elements in camel 2.0.m2 Spring DSL In-Reply-To: <5380c69c0907011154u42c37aa7k398a9aa6175fca8b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: sriram@consortemedia.com References: <24293351.post@talk.nabble.com> <5380c69c0907011016jd2a0e73q5e9981d7a2e91887@mail.gmail.com> <24295045.post@talk.nabble.com> <5380c69c0907011154u42c37aa7k398a9aa6175fca8b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Claus, I have created the following JIRA issue: https://issues.apache.org/activemq/browse/CAMEL-1780 Sriram Claus Ibsen-2 wrote: >=20 > On Wed, Jul 1, 2009 at 8:39 PM, sriramch wrote: >> >> Thanks for your reply. This is a web-app and I was able to breakup my 1 >> context element into multiple contexts with distinct id fields and load >> them >> via the web.xml. =C2=A0I have a set of common routes for error processin= g that >> I >> would like to re-use instead of copy-pasting into every route set in a >> camelContext element. If it is possible to specify the common routes >> defined >> in the common camelContext as the parent of the camelContexts (similar t= o >> using the Spring bean hierarchy) containing the other routes, I'd not >> need >> to copy-paste the common route in the containers for the routes. > No this is not possible right now. Please add a ticket in JIRA about this= . >=20 > Would be nice to have a template / common routes that you can refer to > in our camel contexts. >=20 >=20 >=20 >> >> Thanks >> Sriram >> >> >> Claus Ibsen-2 wrote: >>> >>> On Wed, Jul 1, 2009 at 6:53 PM, sriramch >>> wrote: >>>> >>>> Hi, >>>> I have multiple routes defined in a camelContext element in a single >>>> Spring >>>> context file. Its become very large with lots of routes that don't >>>> necessarily depend on each other. Is it possible to break it up into >>>> multiple Spring context files under separate camelContext definitions >>>> for >>>> better readability/maintainability? >>> >>> How is your application loading the spring xml files? >>> if its the web.xml then you can define a list of spring xml files there= . >>> >>> You can also use in a single xml file that then imports >>> other xml files. >>> >>> So yeah it should be possible, just the way you would mange a large >>> pure spring app with many spring beans. >>> >>> >>> >>>> >>>> Thanks >>>> Sriram >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Multiple-camelContext-elements-in-camel-2.0.m2-S= pring-DSL-tp24293351p24293351.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Multiple-camelContext-elements-in-camel-2.0.m2-Spr= ing-DSL-tp24293351p24295045.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> >> >=20 >=20 >=20 > --=20 > Claus Ibsen > Apache Camel Committer >=20 > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus >=20 >=20 --=20 View this message in context: http://www.nabble.com/Multiple-camelContext-e= lements-in-camel-2.0.m2-Spring-DSL-tp24293351p24295482.html Sent from the Camel - Users mailing list archive at Nabble.com.