开发者

Apache Camel 2.x and Servicemix 3.x/4

I'm trying to run Camel 2.1 SU with Servicemix. As i understand there ar开发者_开发百科e no way to run Camel 2 with Servicemix 3, and i'm try to run it with FUSE Servicemix 4.0.0.1

When i starting my project with maven: mvn jbi:servicemix i receive following error:

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

That means that my camel-context.xml was parsed by Camel 1.x

Is there any way to use my, provided with SA/SU, version of Camel? Yes, i know that I can download Servicemix, remove existing Camel 1.x, and place there my version, but I don't want that hacks :( I need to run this using mvn jbi:servicemix command only

You can view all sources (poms, etc) of this project at http://github.com/splix/smx-currency-rates/tree/skeleton


splix, I am using Camel 2.1 with SMX 3.3.1...its been working great so far.

Here are the steps...

  1. get the source source from SVN (I used the latest as of 12/14/09)

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

  2. build it - mvn clean install

  3. copy the ./target/servicemix-camel-2009.02-SNAPSHOT-installer.zip file to your /servicemix/hotdeploy directory (also remove the old servicemix-camel-*.zip file)

  4. then do a clean restart of servicemix and you should be up and running...

See this thread for more details...

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


Which version of servicemix-camel su are you using? 2009.01 version works only with camel 1.6. You can use camel 2.1-SNAPSHOT using the servicemix-camel 2009.02-SNAPSHOT version.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜