0
在這裏我有兩條路由配置爲當我啓動Apache ServiceMix作爲守護進程時運行。但是當我啓動servicemix時,我注意到這些路由都是按順序執行的。我只想知道如何在servicemix啓動的同時運行它們。如何在Spring上啓動Apache Camel並行運行兩條路徑?
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="timer://myTimer?fixedRate=true&period=8000" />
<to uri="bean://passengerUpdateDaemon?method=process"/>
</route>
<route>
<from uri="timer://myTimer?fixedRate=true&period=8000" />
<to uri="bean://baggageUpdateDaemon?method=process"/>
</route>
</camelContext>
請告訴我如何編寫這個camelcode並行運行。
感謝它的工作。 –