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
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 ?
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.
Victor NOËL made changes - Wed, 9 Sep 2015 - 17:07:38 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Assignee Christophe DENEUX [ cdeneux ] Victor NOËL [ vnoel ]
Victor NOËL made changes - Wed, 9 Sep 2015 - 17:07:42 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Victor NOËL made changes - Wed, 9 Sep 2015 - 17:07:48 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 5.5.0 [ 10406 ]
Resolution Fixed [ 1 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
3h 29m
1
Victor NOËL
Wed, 9 Sep 2015 - 17:07:38 +0200
Open Open In Progress In Progress
4s
1
Victor NOËL
Wed, 9 Sep 2015 - 17:07:42 +0200
In Progress In Progress Resolved Resolved
6s
1
Victor NOËL
Wed, 9 Sep 2015 - 17:07:48 +0200

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