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

Example Has An Incomplete Method for Sending a Message to an Operation Channel

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      General

      Description

      The Spring Integration Reference 8.3 Control Bus states the following example when sending a message to an operation channel:

      Message operation = MessageBuilder.withPayload("@myServiceBean.shutdown()");
      operationChannel.send(operation)

      See: http://static.springsource.org/spring-integration/reference/htmlsingle/#control-bus

      However, it's incomplete. It's missing a build() method. It should be:

      Message operation = MessageBuilder.withPayload("@myServiceBean.shutdown()").build();
      operationChannel.send(operation)

        Activity

        Hide
        mark.fisher Mark Fisher added a comment -

        updated the description to include 'code' tags and also to remove the constructor call for MessageBuilder.

        Show
        mark.fisher Mark Fisher added a comment - updated the description to include 'code' tags and also to remove the constructor call for MessageBuilder.
        Hide
        krzychu Krzysztof Koziol added a comment -

        Moreover in the description there is no info regarding operationChannel variable, how it was created etc.

        Show
        krzychu Krzysztof Koziol added a comment - Moreover in the description there is no info regarding operationChannel variable, how it was created etc.
        Hide
        oleg.zhurakousky@springsource.com Oleg Zhurakousky added a comment -

        Fixed

        Show
        oleg.zhurakousky@springsource.com Oleg Zhurakousky added a comment - Fixed

          People

          • Assignee:
            oleg.zhurakousky@springsource.com Oleg Zhurakousky
            Reporter:
            skram Mark Serrano
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: