Hi,

As camel-mbatis is introduced from camel 2.7 lately, but Servicemix 4.3 use camel 2.6, so with current Servicemix 4.3 there's no feature for camel-mbatis which include all necessary bundles.

However, you can try to write your feature.xml and added camel-mbatis as a feature, or just add necessary bundles manually yourself, those bundles are
mvn:org.apache.camel/camel-mybatis/2.7.0
mvn:org.mybatis/mybatis/3.0.4


Freeman

On 2011-3-29, at 下午4:34, Michael Dewitte wrote:

Hello,

I finally managed (with alot of workarounds) to have a route using the
ibatis component.
Now, I tried to migrate the whole thing from ibatis to mybatis.
I correctly migrated the code and config files of ibatis to mybatis. easy.
I changed the dependency in the pom of my project to
<dependency>
 <groupId>org.apache.servicemix.bundles</groupId>
 <artifactId>org.apache.servicemix.bundles.mybatis</artifactId>
 <version>3.0.2_1</version>
</dependency>

I installed the mybatis bundle with :
karaf@root> osgi:install -s
mvn:org.apache.servicemix.bundles/ org.apache.servicemix.bundles.mybatis/3.0.2_1

I can see with osgi:list that it is marked as "active".

But, when I deploy my project, I get a
org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: mbatis://selectDataToTransfert?statementType=SelectList due to: No component
found with scheme: mbatis

My route is defined as follow :

<route>
<from uri="file:activemq/input" />
<to uri="log:events" />
<to uri="mbatis:selectDataToTransfert?statementType=SelectList" />
<to uri="log:events" />
</route>

The "from file" is just there to manually start the route by dropping a
file, it isn't really used. The only thing i try to test is the use of
mybatis to make a simple select and send the resulting list in the message
body... to be processed by a bean for exemple...

Any clue ?

Mike


--
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to