我已經在Jboss Fuse BluePrint中定義了一個Camel路徑。我需要在Bean的運行時設置一個變量。看到這個例子:駱駝組件:動態地從Bean中設置屬性
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route id="wsClient">
<from uri="timer:foo?repeatCount=1" />
<setBody>
<simple>Message</simple>
</setBody>
<transform>
<method bean="myBean" method="transform" />
</transform>
<to uri="cxf:bean:MyWebService?defaultOperationName={{operation}}" />
<to uri="mock:result" />
</route>
</camelContext>
在這個例子中,我想設置名爲「操作」豆「爲myBean」中的屬性。可以做到嗎? 謝謝!
看到這個常見問題:http://camel.apache.org/how-to-use-a-dynamic-uri-in -to.html –