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
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
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
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: