Glaus, many thanks!
Now (before 2.2.0 release) I modified dependency to camel-ibatis on (in
pom.xml):
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-ibatis</artifactId>
<version>2.2-SNAPSHOT</version>
</dependency>
Added snapshot repository (in pom.xml):
<repositories>
<repository>
<id>snaphot-repo</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
</repository>
</repositories>
And manualy identified the configuration file for IBatis (in
camel-context.xml):
<bean id="JDEdb"
class="org.apache.camel.component.ibatis.IBatisComponent">
<property name="sqlMapConfig" value="classpath:WMS_SqlMapConfig.xml2"/>
</bean>
And here's my route, for example.
from("timer://start?fixedRate=true&period=10000").//
to("bean:helper?method=genEvent").//
to("JDEdb:testInsert?statementType=Insert");//
It works!
Camel it's a obedient camel :)
--
View this message in context:
http://old.nabble.com/How-to-use-multiple-dataSource-in-camel.iBatis--tp26828799p26840495.html
Sent from the Camel - Users mailing list archive at Nabble.com.