-
1. Re: Flexible camel route configuration
kevin.sailly Sep 30, 2010 12:07 PM (in response to t0m.guenter)Hi,
Maybe setting your road with a propertie file :
http://camel.apache.org/properties.html
Setting the cache option to false should make your file reloaded each time...
Regards,
Kévin Sailly
-
2. Re: Flexible camel route configuration
ffang Sep 30, 2010 8:38 PM (in response to t0m.guenter)Hi,
I think you can use property placeholder for your cron expression of your camel router in SMX4, which will leverage OSGi configAdmin service so that you can put properties file in $SMX_HOME/etc folder and change the property instead of deploying a new bundle.
Actually we demonstrated how to use it in camel-osgi example shipped with kit, explain how it works in the README.txt, you may need take a look.
Freeman
-
3. Re: Flexible camel route configuration
varadhan Oct 12, 2010 7:04 AM (in response to ffang)hello,
How to load 2 properties files in a bundle ?
i tried to load 2 properties. but its loading the first one
<!-- etc\com.abcd.ab.trees.cfg -->
<osgix:cm-properties id="treesProps" persistent-id="com.abcd.ab.trees"/>
<context:property-placeholder properties-ref="treesProps"/>
<!-- etc\com.abcd.ab.fox.cfg -->
<osgix:cm-properties id="foxProps" persistent-id="com.abcd.ab.fox"/>
<context:property-placeholder properties-ref="foxProps"/>
br
varre