hello,

I would like to add a property in the file which is defined in my
camelContext :

<propertyPlaceholder id="properties" 
             
location="classpath:META-INF/camel/configuration_dev.properties,classpath:META-INF/camel/filtersDefinition_dev.properties"/>

In my filtersDefinition_dev.properties file, i wrote :
sepa.splitter=test

and i would like to add a new property : sepa.splitter2=test2

I try to do that in a bean :

@Resource(name="properties")
protected CamelPropertyPlaceholderDefinition filters;


but i don't find the equivalent of setProperty (java.util.Properties)
method.


Why do i want to add it in filterDefinition_dev.properties ?

Because i would like to use this new property in a camel route like this :

from("direct:transformXML")
     .beanRef("myClass", "myMethod")  -> create the new property
(sepa.splitter2=test2) 
     .split().tokenizeXML("{{sepa.splitter2}"}


I don't find example on the web

Can you help me ?












--
View this message in context: 
http://camel.465427.n5.nabble.com/How-add-a-property-tp5727488.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to