Results 1 to 4 of 4

Thread: replyTimeout in SimpleMessagingGateway and ReplyMessageCorrelator

  1. #1
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Exclamation replyTimeout in SimpleMessagingGateway and ReplyMessageCorrelator

    By default in the SimpleMessagingGateway the timeout is -1 and 5secs in the ReplyMessageCorrelator.

    The funny thing is when the gateway calls the ReplyMessageCorrelator the reply timeout is only send in case of >= 0.

    I am using M6. Is this already fixed?

    It took me a while to figure that out since my colleague has a slower machine .

  2. #2
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Question

    As a workaround I set explicitly a timeout for 1min to the gateway. It seems now that it always wait for 1min even though the message has already been sent to the reply channel. Is that correct?

    Thanks Tai

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Have you been able to try this with the latest version?

  4. #4
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    Just tested it and it seems to work. In case of a receive timeout it gets an immediate response as soon a message is send to the reply channel.

    I wonder what happens in case of a timeout of -1 (default value in the MessageChannelTemplate) and nothing is send to the reply channel? Does it wait for an unlimited time?

    Tai
    Tai Truong
    pointsoftware.ch

Posting Permissions

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