Hi,

I am configuring Apache Camel MyBatis route in Jboss Fuse, but getting error

"Unable to convert value org.mybatis.spring.SqlSessionFactoryBean@3de15b24
to type org.apache.ibatis.session.SqlSessionFactory"

I verified only camel-mybatis is installed in jboss, it look like it still
expecting old ibatis

My Config:
<bean id="sqlSessionFactory"
class="org.mybatis.spring.SqlSessionFactoryBean">
        <property name="dataSource" ref="mySqlDS"/>
        <property name="configLocation" ref="mybatisConfig"/>
        <property name="mapperLocations">
                <array value-type="org.springframework.core.io.Resource">
                <bean class="org.springframework.core.io.ClassPathResource">
                        <argument value="xyz.xml" />
                </bean>
                </array>
        </property>
    </bean>

    <bean id="mybatis"
class="org.apache.camel.component.mybatis.MyBatisComponent">
        <property name="sqlSessionFactory" ref="sqlSessionFactory"/>
    </bean>





--
View this message in context: 
http://camel.465427.n5.nabble.com/Unable-to-convert-value-org-mybatis-spring-SqlSessionFactoryBean-3de15b24-to-type-org-apache-ibatis-y-tp5798274.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to