2011-05-30 53 views
0

我已经创建了自己的分量,我希望做同样的事情到这一点:使用Apache Camel和Spring,我可以使用属性来构建uri吗?

<camel:camelContext id="camel1"> 
    <camel:route> 
     <camel:from uri="mysch://realthing?network=${network}" id="testEndpoint"/> 

我想$ {网络}来自属性文件(使用Spring的属性占位符):

<context:property-placeholder location="classpath:test.properties"/> 

我该怎么做?

回答

相关问题