Announcement Announcement Module
Collapse
No announcement yet.
DefaultMessageEndpoint reply channel send method return value check? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DefaultMessageEndpoint reply channel send method return value check?

    Continuing to learn the code (haven't made it to the key dispatching code yet) and wonder if there's any potential issue with DefaultMessageEndpoint's (r332) replyChannel.send() calls on lines 213 and 266 not checking the boolean return value of these blocking methods?

    Jon

  • #2
    Thanks Jon. I've just opened an issue for that: http://jira.springframework.org/browse/INT-108

    -Mark

    Comment


    • #3
      Mark,

      So, in the general case, is the following a correct understanding of how the boolean MessageChannel.send(Message) contract should be viewed from calling code?

      Throwable thrown, return value == XXX
      =============================
      Channel send problems; Message guaranteed not to be sent

      No Throwable, return value == true
      ==========================
      Message guaranteed to have been sent

      No Throwable, return value == false
      ===========================
      Problems not due to Throwable causes; Message guaranteed not to be sent

      Thanks, Jon

      Comment

      Working...
      X