Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Passing parameter to Bean

$
0
0
Hello,

I have a property file defined in applicationContext.xml

<camelContext xmlns="http://camel.apache.org/schema/spring">
<propertyPlaceholder id="properties" location="config.properties"/>
<package>transformation</package>
</camelContext>

there is property there in above property file names xx. I want to get its
value in bean class, but I am not able to pass it. Here is my bean class
only method:

public String map(String args) { ... }

I can get the property in route using {{xx}}, but not sure how to pass it to
bean.

Any advice will be appreciated.

Thank you

Viewing all articles
Browse latest Browse all 5648

Trending Articles