[Building Sakai] integrating ibatise with sakai

Aatish Thakre athakre at platys.in
Mon Mar 12 03:41:24 PDT 2012


Hi Steve
Here is my Application context file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
    <bean id="dataSource"
        class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close">
        <property name="driverClassName"
                  value="com.mysql.jdbc.Driver" />
	<property name="url"
                  value="jdbc:mysql://localhost:3306/Ibatis" />
        <property name="username" value="root" />
        <property name="password" value="mysqlpwd1" />
    </bean>

    <bean id="sqlMap"
          class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
        <property name="configLocation">
            <value>classpath:SqlMapConfig.xml</value>
        </property>
        <property name="dataSource" ref="dataSource" />
    </bean>

    <bean id="tradingService"
        class="org.sakaiproject.tool.TradeServiceImp">
        <property name="sqlMapClient" ref="sqlMap" />
    </bean>
 </beans>

i have the ibatis jar and sqlMap.jar    And SqlMapConfig.xml file kept
in web-inf

-- 
Thanks/Regards
Aatish Thakre


More information about the sakai-dev mailing list