我有駱駝運行在我的JVM和hawtio連接到它。我可以在hawtio JMX選項卡中看到Camel細節。當我在camelcontex.xml中更改任何內容並重新啓動我的karaf時,這些更改沒有反映在hawtio中。駱駝上下文更改不反映在hawtio
所以我無法調試我的路線hawtio。
有人可以建議任何配置,以便更改開始反映在hawtio中,我可以通過hawtio調試我的路由。
我CamelContex.xml
<route id="cbr-route">
<from id="_from1" uri="file://C:/temp/camel"/>
<log id="_log1" message="Receiving order ${file:name}"/>
<choice id="_choice1">
<when id="_when1">
<xpath id="_xpath1">/order/customer/country = 'UK'</xpath>
<log id="_log2" message="Sending order ${file:name} to the UK"/>
<to id="_to1" uri="file:work/cbr/output/uk"/>
</when>
<when id="_when2">
<xpath id="_xpath2">/order/customer/country = 'US'</xpath>
<log id="_log3" message="Sending order ${file:name} to the US"/>
<to id="_to2" uri="file:work/cbr/output/us"/>
</when>
<otherwise id="_otherwise1">
<log id="_log4" message="Sending order ${file:name} to another country"/>
<to id="_to3" uri="file:work/cbr/output/others"/>
</otherwise>
</choice>
<log id="_log5" message="Done processing ${file:name}"/>
</route>
hawtio源標籤航線
<route xmlns="http://camel.apache.org/schema/spring" id="cbr-route">
<from uri="file:work/cbr/input" id="_from1"/>
<log message="Receiving order ${file:name}" id="_log1"/>
<choice id="_choice1">
<when id="_when1">
<xpath>/order/customer/country = 'UK'</xpath>
<log message="Sending order ${file:name} to the UK" id="_log2"/>
<to uri="file:work/cbr/output/uk" id="_to1"/>
</when>
<when id="_when2">
<xpath>/order/customer/country = 'US'</xpath>
<log message="Sending order ${file:name} to the US" id="_log3"/>
<to uri="file:work/cbr/output/us" id="_to2"/>
</when>
<otherwise id="_otherwise1">
<log message="Sending order ${file:name} to another country" id="_log4"/>
<to uri="file:work/cbr/output/others" id="_to3"/>
</otherwise>
</choice>
<log message="Done processing ${file:name}" id="_log5"/>
</route>
謝謝你這麼多的高級。
我試圖停止和啓動所有hawtio捆綁,但沒有工作 – Arun
Karaf 6.3 Apache的駱駝2.17.0 hawtio 1.4.0 – Arun