0

我正在尝试使用 Servicemix 运行 Camel 2.1 SU。据我了解,无法使用 Servicemix 3 运行 Camel 2,我正在尝试使用 FUSE Servicemix 4.0.0.1 运行它

当我用 maven 开始我的项目时:mvn jbi:servicemix我收到以下错误:

unexpected element (uri:"http://camel.apache.org/schema/spring", local:"camelContext"). Expected elements are <{http://activemq.apache.org/camel/schema/spring}aggregator>

这意味着 mycamel-context.xml已被 Camel 1.x 解析

有什么方法可以使用我提供的 SA/SU 版本的 Camel?是的,我知道我可以下载 Servicemix,删除现有的 Camel 1.x,然后将我的版本放在那里,但我不想要那些 hacks :( 我mvn jbi:servicemix只需要使用命令运行它

您可以在http://github.com/splix/smx-currency-rates/tree/skeleton 查看该项目的所有来源(poms 等)

4

2 回答 2

3

splix,我正在使用 Camel 2.1 和 SMX 3.3.1 ......到目前为止它运行良好。

以下是步骤...

  1. 从 SVN 获取源代码(我使用了 2009 年 12 月 14 日的最新版本)

    http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-camel/trunk

  2. 构建它 - mvn clean install

  3. 将 ./target/servicemix-camel-2009.02-SNAPSHOT-installer.zip 文件复制到 /servicemix/hotdeploy 目录(同时删除旧的 servicemix-camel-*.zip 文件)

  4. 然后重新启动 servicemix,您应该可以启动并运行...

有关更多详细信息,请参阅此线程...

http://old.nabble.com/Camel-2.1-with-Servicemix-3.3.1-td26718645ef12049.html#a26781927

于 2009-12-24T20:49:05.050 回答
0

您使用的是哪个版本的 servicemix-camel su?2009.01 版本仅适用于骆驼 1.6。您可以使用 servicemix-camel 2009.02-SNAPSHOT 版本来使用 camel 2.1-SNAPSHOT。

于 2009-12-16T18:49:15.763 回答