Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2822

Add 'requires-reply' attribute to gateways XSDs, e.g. <jdbc:outbound-gateway>

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2 RC2
    • Fix Version/s: 3.0 M3
    • Component/s: None
    • Labels:

      Description

      I have some config:

      <channel id="inputChannel">
        <dispatcher load-balancer="none"/>
      </channel>
      
      <jdbc:outbound-gateway request-channel="inputChannel" data-source="dataSource" order="1">
            <jdbc:query>
      	SELECT *
      	FROM SOMETABLE
      	WHERE id = :payload
      	and arcDate >= trunc(:headers[REQUEST_DATE], 'MM')
            </jdbc:query>
      </jdbc:outbound-gateway>
      
      <jdbc:outbound-gateway request-channel="inputChannel" data-source="dataSource" order="2">
      	<jdbc:query>
      	   SELECT *
      	   FROM SOMETABLE
      	   WHERE id = :payload
      	   and arcDate >= add_months(trunc(:headers[REQUEST_DATE], 'MM'), -1)
      	   and arcDate &lt; trunc(:headers[REQUEST_DATE], 'MM')
      	</jdbc:query>
      </jdbc:outbound-gateway>
      

      So, I want to invoke second query if first one doesn't return anything.
      It is return null; from JdbcOutboundGateway. Further ARPMH doesn't do anything because his property is requiresReply = false;.
      But I was surprised that I can't reconfigure it via xml-attribute: it is absent.
      Was it done intentionally?
      There are a lot gateways who might not produce reply, but it may be interest to do some recovery.
      Right now only several components have 'requires-reply' attribute:
      <service-activator>, <enricher> & <splitter>.
      WDYT?

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: