View Full Version : DefaultMessageEndpoint reply channel send method return value check?
jmaken
Feb 17th, 2008, 12:11 PM
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
Mark Fisher
Feb 17th, 2008, 01:54 PM
Thanks Jon. I've just opened an issue for that: http://jira.springframework.org/browse/INT-108
-Mark
jmaken
Feb 17th, 2008, 03:17 PM
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
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.