Keeping me busy and can't seem to solve it so easily, I'm trying to call a SQL Server 2000 stored procedure that sets an output parameter using Spring iBATIS support.
I use Spring 1.2.3 and iBATIS 2.0, the xml map looks like this:
I call it like this in my SqlMap implementation class (I think the problem is there somewhere) :Code:<parameterMap id="lpFilter" class="java.util.Map"> <parameter property="triggerId" /> <parameter property="charge" /> <parameter property="logicalPortId" jdbcType="INTEGER" javaType="java.lang.Integer" mode="OUT" /> </parameterMap> <procedure id="findLogicalPortId" parameterMap="lpFilter"> {call sp_test (?, ?, ?)} </procedure>
The iBATIS documentation says that the parameter object (here "lpFilter") should be changed, but it isn't, the result is simply null.Code:getSqlMapClientTemplate().update("findLogicalPortId", map); Object obj = map.get("logicalPortId"); System.out.println(obj); // results in null
What am I doing wrong ? Should I use the Spring JDBC approach for this ?
Thx,
M


Reply With Quote