2013-06-27 2 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> 
관련 문제