Petals CDK

onAsyncJBIMessage not called when sendAsync is used to answer as a provider

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.4.3
  • Fix Version/s: 5.5.0
  • Component/s: None
  • Security Level: Public
  • Description:

    A component can use sendAsync to send an answer to an InOut exchange (for example) and to wait for the DONE ack.

    Currently, the CDK does not call the onAsyncJBIMessage for the provider role.
    This should be fixed.

  • Environment:
    -

Activity

Hide
Victor NOËL added a comment - Wed, 9 Sep 2015 - 15:01:04 +0200

I'm not talking of how the provider sends the reply, but how the provider handles the ack of this reply sent by the consumer.

Show
Victor NOËL added a comment - Wed, 9 Sep 2015 - 15:01:04 +0200 I'm not talking of how the provider sends the reply, but how the provider handles the ack of this reply sent by the consumer.
Hide
Christophe DENEUX added a comment - Wed, 9 Sep 2015 - 14:28:54 +0200

IMO: The best practice to return a reply is to set the reply into the exchange and return true on onJBIMessage(...). So using, it seems to me that sendAsync in this case as no sens. Perhaps, calls to sendAsync should be forbidden in this use case ?

Show
Christophe DENEUX added a comment - Wed, 9 Sep 2015 - 14:28:54 +0200 IMO: The best practice to return a reply is to set the reply into the exchange and return true on onJBIMessage(...). So using, it seems to me that sendAsync in this case as no sens. Perhaps, calls to sendAsync should be forbidden in this use case ?

People

Dates

  • Created:
    Wed, 9 Sep 2015 - 13:37:55 +0200
    Updated:
    Wed, 9 Sep 2015 - 17:07:48 +0200
    Resolved:
    Wed, 9 Sep 2015 - 17:07:48 +0200