Hi

Yeah you should be able to declare a 2nd mybatis component and
configure it to use a different mybatis configuration file.

<bean id="mybatis2" class="...MyBatisComponent">
   <!-- configure a property with the configuration file to use -->
</bean>



On Thu, Mar 31, 2011 at 1:39 PM, Michael Dewitte
<[email protected]> wrote:
> Hi,
>
> I finally succeeded using MyBatis in a route with camel 2.7.0 deployed on
> Karaf (servicemix in fact).
> But what I'd like now is to be able to use 2 different databases in the same
> route.
> I know that I can define different databases in MyBatis, but is it possible
> to configure two instances of the MyBatis component for Camel in the same
> route, each one pointing to a different database ?
> Or maybe is there another way to use the 2 databases in the same route ? or
> use subroutes ?
>
> Thanks for your help,
>
> Mike
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to