camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: Passing parameter to Bean
Date Thu, 05 Dec 2013 01:34:17 GMT
inject it into your route builder as a String, then you can use it in
your route or reference it somehow

On Wed, Dec 4, 2013 at 2:49 PM, zahir <zahir_wp@yahoo.ca> wrote:
> 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
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Passing-parameter-to-Bean-tp5744331.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Mime
View raw message