Michael,

And has the feature for that component already been installed
(features:install camel-mybatis)?

Regards,

Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



On Tue, Mar 29, 2011 at 10:50 AM, Michael Dewitte
<[email protected]> wrote:
> I tried both since I found references to both on the net (first with
> 'mybatis' as documented on ccamel site, then with mbatis since I found that
> on the net).
> Both of them gave me the same result... :-(
>
>
> 2011/3/29 Gert Vanthienen <[email protected]>
>
>> Mike,
>>
>> Isn't there a typo in your route?  Shouldn't that be <to
>> uri="mybatis:selectDataToTransfert?statementType=SelectList" /> with
>> mybatis: instead of mbatis: at the beginning ?
>>
>> Regards,
>>
>> Gert Vanthienen
>> ------------------------
>> FuseSource
>> Web: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>>
>>
>>
>> On Tue, Mar 29, 2011 at 10:34 AM, Michael Dewitte
>> <[email protected]> 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
>> >
>>
>

Reply via email to