2013-06-27 28 views

回答

0

我得到了上述問題的答案,spelsource在春天集成框架,用來動態地讀取數據,並將其傳遞到屬性文件。如下所示。

<int-jdbc:outbound-channel-adapter 
      channel="com.db.jdbc.serviceactivator.output" data-source="dataSource" 
      query="${int.jdbc.poller.outbound.ddaout.update.query}" 
      sql-parameter-source-factory="SpelSource" /> 

    <bean id="SpelSource" 
      class="org.springframework.integration.jdbc.ExpressionEvaluatingSqlParameterSourceFactory"> 
      <property name="parameterExpressions"> 
        <map> 
          <entry key="dda_rid_dda" value="payload.getMMI_RID_MSG_IN()" /> 
          <entry key="response" value="headers.updateflag" /> 
        </map> 
      </property> 
    </bean>