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

JPA Retrieving Outbound Gateway produced no reply when zero entities in database

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0 M3
    • Fix Version/s: 5.2 Backlog
    • Component/s: JPA Support
    • Labels:
      None
    • Environment:
      All

      Description

      In JpaOutboundGateway.java, an empty result is considered like no channel-reply :

      if (OutboundGatewayType.RETRIEVING.equals(this.gatewayType)) {
      result = this.jpaExecutor.poll(requestMessage);
      }
      if (result == null || !producesReply) {
      return null;
      }

      A select request with an empty result is maybe a value expected in the channel-reply.

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            medmarti Médéric Martin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: