You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by Jakkana <ja...@gmail.com> on 2014/05/22 09:10:51 UTC

validate properties (from .cfg) in blueprint routes

I have defined property placeholder in blueprint.xml of osgi bundle.

<cm:property-placeholder id="properties" persistent-id="myappconfig" />

and i have myappconfig.cfg  placed in etc folder of servicemix. This is
working as expected as i have been using like <from
uri="timer://apptimer?fixedRate=true&amp;period={{property1}}" />


Now i would like to validate properties  if property1 doesnt exist then use
property2 ?   and also i have to log the message if property does not exist 
?  

I would like to add validtion why because Bundle is failed and  not
executing other routes in blueprint dure to  error in single route.
 
 Any help much appreciated.






--
View this message in context: http://camel.465427.n5.nabble.com/validate-properties-from-cfg-in-blueprint-routes-tp5751453.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: validate properties (from .cfg) in blueprint routes

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Please use the @user mailing list for using Camel questions.

On Thu, May 22, 2014 at 9:10 AM, Jakkana <ja...@gmail.com> wrote:
> I have defined property placeholder in blueprint.xml of osgi bundle.
>
> <cm:property-placeholder id="properties" persistent-id="myappconfig" />
>
> and i have myappconfig.cfg  placed in etc folder of servicemix. This is
> working as expected as i have been using like <from
> uri="timer://apptimer?fixedRate=true&amp;period={{property1}}" />
>
>
> Now i would like to validate properties  if property1 doesnt exist then use
> property2 ?   and also i have to log the message if property does not exist
> ?
>
> I would like to add validtion why because Bundle is failed and  not
> executing other routes in blueprint dure to  error in single route.
>
>  Any help much appreciated.
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/validate-properties-from-cfg-in-blueprint-routes-tp5751453.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/