camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashwin Karpe <>
Subject Re: Newbie questions on camel
Date Wed, 29 Feb 2012 22:53:40 GMT

On your first point.

 1) Create some objects that all other processors in the route can share

This is indeed possible. The CamelContext contains a registry where you can
store such objects as singletons or regular objects and refer to them in
Camel routes and processors. This is automatic if you use Spring since the
CamelContext is aware of beans created in Spring and stores them in the
registry automatically. You can also use your own registry implementation
(JNDI or custom) to store and refer to such objects as follows. 

As for 2,3 and 4 you could do it as follows
             from("quartz:XXX or timer:YYY")
                 .to ("sql:ZZZ or hibernate:AAA or bean:XYZ")
                 .to ("jetty:http://WWW")

To make things dynamic as far as injecting endpoints are concerned, you
could use the registry or properties component. 

Hope this helps.



Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary) 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message