I have the following line of code in my DAO which gives error No SqlMapClient specified
getSqlMapClientTemplate().queryForList("someNameSpace.procedureIdName", parm);
My class is extending SqlMapClientDaoSupport
I noticed in the api there is a setSqlMapClientTemplate
method which takes sqlmapclienttemplate
as the parameter, however, I cant figure out where to get that sqlmapclienttemplate so that I can pass that into the method.
I have the following beans in my xml's
<bean id="MySqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation" value="classpath:sql-map-config-oracle.xml"/>
<property name="dataSource" ref="IbatisDataSourceOracle"/>
</bean>
<bean id="IbatisDataSourceOracle" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="jdbc/RSRC/comp/my/oltp"/>
</bean>
<bean id="phaDisasterTenantIncomeDAO" class="reports.IncomeDAO">
<property name="sqlMapClient" ref="MySqlMapClient"/>
<property name="dataSource" ref="IbatisDataSourceOracle"/>
</bean>