how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread CamelTyro
I made the properties defined as below bean id=properties class=org.apache.camel.component.properties.PropertiesComponent property name=locations list valueclasspath:esb-config.properties/value --username,password etc

Re: how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread Willem jiang
I’m not sure how do you use the username or password. Can you show me an example of username configuration? -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com

Re: how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread CamelTyro
In a property file, I config the username and password, besides the endpoint url, as below #This used to access the activemq userName=system password=manager #This used to set the url of endpoint url1=restlet:/rs/his/... url2=... I config the router by {{url1}}, and the activemq infomation

Re: how to use the org.apache.camel.component.properties.PropertiesComponent

2013-11-06 Thread Willem jiang
The userName and password are charged by Spring. You can use BridgePropertyPlaceholderConfigurer[1] to bridge the properties between Spring and Camel. [1]http://camel.apache.org/properties.html#Properties-BridgingSpringandCamelpropertyplaceholders -- Willem Jiang Red Hat, Inc. Web: