簡體   English   中英

從Spring屬性傳遞Apache Camel Endpoint Uri

[英]Passing Apache Camel Endpoint Uri from a Spring Property

我想將我的spring bean的屬性用作駱駝sql組件的uri的uri。 但是我沒有找到任何有關此的信息。

它像是:

<bean id="programBean" class="com.tcell.cms.gateway.bean.ProgramBean">
     <property name="uri" value="www.asdasa.com"/>
</bean>

在駱駝語境中:

<route>
    <from uril="sql:${programBean.uri}
</route>

我看了一些樣本,但是沒有用。

任何幫助將不勝感激

謝謝

阿里

編輯:我想從bean的屬性傳遞SQL端點的url。 不是來自屬性文件。 uri是bean的屬性。

請參閱有關使用屬性占位符的Camel文檔。

還有關於在駱駝路線中使用spring $ {}的常見問題解答

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM