Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache camel ApacheServiceMix!5.0.0:ApacheKaraf 2.3.4:“;骆驼:路线列表“;命令发布 我有以下情况:_Apache Camel_Osgi_Apache Karaf_Apache Servicemix - Fatal编程技术网

Apache camel ApacheServiceMix!5.0.0:ApacheKaraf 2.3.4:“;骆驼:路线列表“;命令发布 我有以下情况:

Apache camel ApacheServiceMix!5.0.0:ApacheKaraf 2.3.4:“;骆驼:路线列表“;命令发布 我有以下情况:,apache-camel,osgi,apache-karaf,apache-servicemix,Apache Camel,Osgi,Apache Karaf,Apache Servicemix,几天前我从Apache ServiceMix迁移了!4.5.3到5.0.0版,我遇到了一个小问题,至少我认为是这样 我的主Spring配置文件如下所示: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cam

几天前我从Apache ServiceMix迁移了!4.5.3到5.0.0版,我遇到了一个小问题,至少我认为是这样

我的主Spring配置文件如下所示:

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring"
  xmlns:ctx="http://www.springframework.org/schema/context"
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd 
  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
  ">

  <!-- Import the First CamelContext -->
  <import resource="classpath:META-INF/spring/camel-context/first-context.xml" />

  <!-- Import the Second CamelContext -->
  <import resource="classpath:META-INF/spring/camel-context/second-context.xml" />

  <!-- Import the Third CamelContext -->
  <import resource="classpath:META-INF/spring/camel-context/third-context.xml" />

</beans>

使用旧版本的ServiceMix时!(4.5.3),我在Karaf控制台中键入
camel:route list
camel:context list
,我看到所有3个上下文(第一、第二、第三个CamelContext)都有自己的路由。还好

迁移到ServiceMix之后!5.0.0(使用确切的代码),当我发出这些命令时,我只看到最后一个上下文
第三个上下文
。不好。尽管捆绑包运行正常,但路由仍然存在,运行正常。我可以在web控制台中看到它们(比如hawtio)

问题:
ServiceMix是否存在问题!5.0.0或我必须以某种方式修改代码?我想在Karaf控制台中查看我的所有上下文/路由,这确实有助于调试…

显然,这是ApacheCamel 2.12.3[1]中的一个错误,它是从ApacheCamel 2.12.4开始修复的。谢谢分享,易卜生


[1]

尝试翻转导入顺序,看看是否看到另一个骆驼。@ClausIbsen我总是在Karaf中只看到最后一个骆驼上下文。。。不管我有多少个上下文,你能在JMX中看到什么,例如如果你使用JConsole连接到karaf?您的是否使用任何自定义id属性来设置上下文的名称?如果是这样,请确保它们是唯一的名称。当使用控制台连接到Karaf时,我可以看到所有的上下文/路由。我对每个上下文都有一个自定义ID属性,但它并不相同。我删除了自定义ID属性,同样的事情发生了。。。如果我在旧版本的ServiceMix中安装相同的捆绑包!(4.5.3),卡拉夫表现正常。