You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2009/06/05 13:10:58 UTC

Parameter true/false in spring DSL to activate/disabled the tracing

Hi,

Is there a possibility to use a parameter in camel spring DSL to
activate/disabled the tracing of the camel context ?

idea

$flag = "true"

<camel:camelContext trace="$flag" xmlns="http://camel.apache.org/schema/osgi
">
   ...
</camel:camelContext>

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com

Re: Parameter true/false in spring DSL to activate/disabled the tracing

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jun 5, 2009 at 1:10 PM, Charles Moulliard<cm...@gmail.com> wrote:
> Hi,
>
> Is there a possibility to use a parameter in camel spring DSL to
> activate/disabled the tracing of the camel context ?
>
> idea
>
> $flag = "true"
>
> <camel:camelContext trace="$flag" xmlns="http://camel.apache.org/schema/osgi
> ">
>   ...
> </camel:camelContext>
No. Its a XSD true|false value.

But I think you can use a System Property to enable / disable it also.
Check the source code in CamelContextFactoryBean.


>
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus