Results 1 to 3 of 3

Thread: DefaultMessageEndpoint reply channel send method return value check?

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Austin, Texas
    Posts
    21

    Default 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. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

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

    -Mark

  3. #3
    Join Date
    Mar 2006
    Location
    Austin, Texas
    Posts
    21

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •