camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Multiple camelContext elements in camel 2.0.m2 Spring DSL
Date Wed, 01 Jul 2009 18:54:42 GMT
On Wed, Jul 1, 2009 at 8:39 PM, sriramch<sriram@consortemedia.com> 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.  I have a set of common routes for error processing 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 to
> 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.

Would be nice to have a template / common routes that you can refer to
in our camel contexts.



>
> Thanks
> Sriram
>
>
> Claus Ibsen-2 wrote:
>>
>> On Wed, Jul 1, 2009 at 6:53 PM, sriramch<sriram@consortemedia.com> 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 <xml:import> 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-Spring-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-Spring-DSL-tp24293351p24295045.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

Mime
View raw message