Java 骆驼上下文的变化不会反映在hawtio中
我在JVM中运行Camel,hawtio连接到它。我可以在hawtio JMX选项卡中看到骆驼的详细信息。当我在camelcontex.xml中更改任何内容并重新启动我的karaf时,这些更改并没有反映在hawtio中 所以我无法调试我的路线 有人能建议一些配置吗,这样更改就可以反映在hawtio中,我就可以通过hawtio调试我的路由了 我的CamelContex.xmlJava 骆驼上下文的变化不会反映在hawtio中,java,apache-camel,jbossfuse,hawtio,Java,Apache Camel,Jbossfuse,Hawtio,我在JVM中运行Camel,hawtio连接到它。我可以在hawtio JMX选项卡中看到骆驼的详细信息。当我在camelcontex.xml中更改任何内容并重新启动我的karaf时,这些更改并没有反映在hawtio中 所以我无法调试我的路线 有人能建议一些配置吗,这样更改就可以反映在hawtio中,我就可以通过hawtio调试我的路由了 我的CamelContex.xml <route id="cbr-route"> <from id="_from1"
<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 web控制台更改Camel XML,那么这些更改不是持久性的,它们只在运行时在内存中更改。如果您需要持续的更改,那么您需要更改源代码,重新构建并重新部署到karaf
但是,Karaf也支持通过将单个xml文件复制到deploy文件夹来部署该文件。然后您可以对该文件进行更改并保存,karaf会检测到文件更改并自动重新部署。我尝试停止并启动所有hawtio捆绑包,但无法运行karaf 6.3 Apache Camel 2.17.0 hawtio 1.4.0非常感谢@Claus Ibsen,很荣幸与您交谈。我是ApacheCamel和Fuse的新手,我试图通过向服务器添加项目在JBossStudio中部署两个Fuse项目。你能告诉我如何通过JBossStudio在Karaf中添加2-3个项目吗。2.此外,我还尝试了在源代码重建和重新部署到Karaf中的各种时间更改,即使我删除了数据文件夹,但源代码更改仍然没有反映在hawtio中。我是否需要更改任何配置文件以反映hawtio中的更改。请推荐您的贵重物品thoughts@Arun确保在POM中用-SNAPSHOT版本标记您的包。如果重新部署相同的稳定版本,它可能不会重新加载所有内容。