Announcement Announcement Module
No announcement yet.
SqlOutParameter Callback Not Getting Called Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SqlOutParameter Callback Not Getting Called

    Hi all,
    I'm running into an issue with the a RowMapper callback not being invoked on a SqlOutParameter. I'm using DB2, so I've also got a SqlReturnResultSet in the mix as well. The row mapper on my result set is being invoked and the out parameter is being returned, just not mapped. Overall the stored procedure is running fine and all data is being returned and no errors are being thrown in the logs. This is straight Spring JDBC without Hibernate or any other toolset.

    declareParameter(new SqlReturnResultSet("rs", new ResultMapper()));
    declareParameter(new SqlParameter("CHNL_PLTFM_ID", Types.CHAR));
    declareParameter(new SqlParameter("PLTFM_PROD_CD", Types.CHAR));
    declareParameter(new SqlParameter("RQST_BBA_LIST4", Types.VARCHAR));
    declareParameter(new SqlOutParameter("MSG_BACK", Types.VARCHAR, new MessageBackMapper()));
    I tried looking through the forums and in the reference documentation, so I apologize ahead of time if I just glossed over something obvious. Any help is greatly appreciated.