Hi Camel will by default look for SqlMapConfig.xml in the root classpath. So you can copy it to src/main/resources
But if you want to provide a "relationship" then you actually need to use the IBatisComponent where it has a setter method. You can define the component in your spring xml <bean id="ibatis" class="org.apache....IBatisComponent"> <property name="sqlMapResource" value="classpath:WhereIsMyFile.xml"/> </bean> The type of sqlMapResource is a spring io Resource so you can have the classpath or filepath prefix. Could you try it out and report how it goes. Then I can update our wiki documentation for ibatis: http://activemq.apache.org/camel/ibatis.html Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: Reda [mailto:[EMAIL PROTECTED] Sent: 7. oktober 2008 14:36 To: camel-user@activemq.apache.org Subject: RE: a full ibatis example? Thanks for your suggestion. If I was able to build a working example I would create a tutorial..;-) But I need more help. I think I should add in camel-context the relationship between the following route and the iBatis configuration SqlMapConfig.xml from("timer://pollTheDatabase?delay=10000"). to("ibatis:selectAllUsers"). bean(new SomeBean()); My project layout is the following src/main/java/org/apache/camel/example/spring/MyRouteBuilder.java src/main/java/org/apache/camel/example/spring/User.java src/main/resources/pirelli/elearning/ibatis/User.xml src/main/resources/META-INF/spring/camel-context.xml src/main/resources/SqlMapConfig.xml src/main/resources/log4j.properties -- View this message in context: http://www.nabble.com/a-full-ibatis-example--tp19709868s22882p19857166.html Sent from the Camel - Users mailing list archive at Nabble.com.