这个问题是由于ActiveMQ 5.16.3修复了与camel之间的Integration API的兼容性问题导致的。解决此问题需要更改WSO2 EI 6.5.0的'org.apache.activemq.camel.component.ActiveMQComponent'命名空间/包以引用正确的ActiveMQ依赖项。
以下是解决此问题的步骤和代码示例:
将WSO2 EI 6.5.0的'Repository/components/plugins'目录中的'org.apache.activemq.camel.component_5.15.9.99999-99999'目录更名为'org.apache.activemq.camel.component_5.16.3.99999-99999'。
打开'org.apache.activemq.camel.component_5.16.3.99999-99999/META-INF/MANIFEST.MF'文件,并将'Bnd-LastModified'字段的值设置为当前时间。
在'org.apache.activemq.camel.component_5.16.3.99999-99999/META-INF'目录中创建新文件'pom.properties',并将其内容设置为下面的示例代码:
groupId=org.apache.activemq artifactId=activemq-camel version=5.16.3
这将更新WSO2 EI以正确引用ActiveMQ 5.16.3依赖项。此后,您应该能够查看和查看消息详细信息。
示例代码见下: