Announcement Announcement Module
Collapse
No announcement yet.
timeout semantics differ between MessageChannelTemplate and JmsOutboundGateway Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • timeout semantics differ between MessageChannelTemplate and JmsOutboundGateway

    Hi,

    When JmsOutboundGateway.handleRequestMessage() does not receive a reply, it is throwing a MessageTimeoutException. Using a direct request channel, this exception is propagating to the thread which issued the request.

    Is this desirable behaviour? The semantics of MessageTemplate.doSendAndReceive() are to return null if the receive times out. By receiving the exception, the contract of doSendAndReceive() is changing based on implementation details.

    Any reason not to simply return null if the JMS receive times out?

    Regards,
    Emerson

    PS. Would the MessageTimeoutException get serialized and send as a response if not using a direct channel?
Working...
X