Hi all,
I am attempting to call an Oracle stored procedure from Spring integration. I have a pooled connection to my database and am using an inbound channel adapter to retreive the data from a select query as follows:
My query takes a cursor as an outbound parameter and will return a result set. The query works in Spring MVC elsewhere in the project.Code:<int-jdbc:stored-proc-inbound-channel-adapter data-source="dataSource" expect-single-result="true" ignore-column-meta-data="true" is-function="false" skip-undeclared-results="true" channel="channel1" id="SP_JDBC" stored-procedure-name="myProc" auto-startup="true"> <int:poller fixed-rate="4000"/> <int-jdbc:sql-parameter-definition name="sys_refcursor" direction="OUT" type="INTEGER" /> <int-jdbc:returning-resultset name="rows" row-mapper="myRowMapper" /> </int-jdbc:stored-proc-inbound-channel-adapter>
I keep getting errors saying my parameters are invalid. I've tried googling, but there doesn't seem much in the way of examples, if any. Am I defining the curosr the correct way? Or is it best to use a different sort of gateway/channel-adapter and call the stored-proc from Java?
Thanks
Ed


Reply With Quote
