INT-3705: Improve Messaging Annotations handling
JIRA: https://jira.spring.io/browse/INT-3705 * Add validation for annotation attributes which must be populated directly on the `MessageHandler` `@Bean` using setters * Add `sendTimeout()` annotation attribute for all Messaging Annotations * Remove `DEFAULT_SEND_TIMEOUT = 1000L` from `AbstractCorrelatingMessageHandler` to make its component consistent with all other `AbstractMessageProducingHandler` implementation. * Fix XSD docs and Reference Manual to say that default `send-timeout` for `AbstractMessageProducingHandler` components is `-1`, not `one second` * Make all Messaging Annotations attributes as `String` to allow to configure through the Property Placeholder options * Fix a couple of typos Polishing
This commit is contained in:
committed by
Gary Russell
parent
5bf4d97b38
commit
183941ec07
@@ -134,7 +134,7 @@ public class TcpOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
throw new MessageTimeoutException(requestMessage, "Timed out waiting for response");
|
||||
}
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("Respose " + replyMessage);
|
||||
logger.debug("Response " + replyMessage);
|
||||
}
|
||||
return replyMessage;
|
||||
}
|
||||
@@ -301,7 +301,7 @@ public class TcpOutboundGateway extends AbstractReplyProducingMessageHandler
|
||||
/**
|
||||
* We have a race condition when a socket is closed right after the reply is received. The close "error"
|
||||
* might arrive before the actual reply. Overwrite an error with a good reply, but not vice-versa.
|
||||
* @param reply
|
||||
* @param reply the reply message.
|
||||
*/
|
||||
public void setReply(Message<?> reply) {
|
||||
if (this.reply == null) {
|
||||
|
||||
Reference in New Issue
Block a user