
Originally Posted by
Cleric
Automatic reading of procedure MetaData doesn't support by many data bases.
So, my recomendation: always use ignore-column-meta-data="true" and define all procedure parameters directly in the adapter config.
Good luck,
Artem Bilan
Thanks for the quick reply, of course the following question is how?
I'm trying something like that:
HTML Code:
<int-jdbc:sql-parameter-definition name="I_BP_SYM"
direction="IN"
type="STRING"/>
but it doesn't work.
The database is Oracle 11G and I'm using oracle6 driver.
the stored proc is declared as follows:
HTML Code:
DECLARE
RetVal VARCHAR2(32767);
I_BP_SYM VARCHAR2(32767);
BEGIN
I_BP_SYM := 'a1234';
RetVal := SIGNBOOK_CREATOR.PKG_INTERF_01.GET_MAIN_ADDR_BY_BP_SYM ( I_BP_SYM );
DBMS_OUTPUT.PUT_LINE(RetVal);
COMMIT;
END;
and I'm using the following configuration:
HTML Code:
<bean id="dataSource" class="oracle.jdbc.pool.OracleDataSource" destroy-method="close">
<property name="connectionCachingEnabled" value="true"/>
<property name="URL" value="jdbc:oracle:thin:@xxxxxxxxxxxxxxxxxxxxt:11000:xxxxxxxxxxxx"/>
<property name="password" value="xxxxxxxxxxxx"/>
<property name="user" value="xxxxxxxxxxxxx"/>
<property name="connectionCacheProperties">
<props merge="default">
<prop key="MinLimit">3</prop>
<prop key="MaxLimit">20</prop>
</props>
</property>
</bean>
<int:channel id="procedureRequestChannel"/>
<int:channel id="replyChannel"/>
<int:gateway id="gateway" default-request-timeout="5000"
default-reply-timeout="5000"
default-request-channel="procedureRequestChannel"
service-interface="ch.bsource.signbook.interfaces.db.SignBookBp">
<int:method name="lookUp" request-channel="procedureRequestChannel"/>
</int:gateway>
<int-jdbc:stored-proc-outbound-gateway id="outbound-gateway-procedure"
request-channel="procedureRequestChannel"
data-source="dataSource"
stored-procedure-name="SIGNBOOK_CREATOR.PKG_INTERF_01.GET_MAIN_ADDR_BY_BP_SYM"
expect-single-result="true"
is-function="false"
ignore-column-meta-data="true"
use-payload-as-parameter-source="false">
<int-jdbc:sql-parameter-definition name="I_BP_SYM"
direction="IN"
type="STRING"
scale="32767"/>
</int-jdbc:stored-proc-outbound-gateway>