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

Reply via email to