Petals CDK

CDK should never try to reply for expired async exchange

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:

    When using sendAsync and the send expire, it makes no sense to have the CDK or a component reply in case of error or whatever: the sent exchange is terminated and shouldn't be sent again.

  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 8 Sep 2015 - 11:40:00 +0200

I don't understand what you mean by this issue. Can you add explanations ?

IMO: when the timeout of a sendAsync expires, the exchange is terminated in a point of view of the service consumer, but the exchange is always in progress in the point of view of the service provider because it was not informed that the timeout expired.

Show
Christophe DENEUX added a comment - Tue, 8 Sep 2015 - 11:40:00 +0200 I don't understand what you mean by this issue. Can you add explanations ? IMO: when the timeout of a sendAsync expires, the exchange is terminated in a point of view of the service consumer, but the exchange is always in progress in the point of view of the service provider because it was not informed that the timeout expired.
Hide
Victor NOËL added a comment - Tue, 8 Sep 2015 - 15:05:08 +0200

It means that from the point of view of the sender/consumer – the one who did the sendAsync and the one for whom the concept of expiration means something --, once the expiration occurred, it makes no sense for the component to send back this exchange (e.g., when an error occurred, or by default by returning true with the method onExpiredAsyncJBIMessage).

Of course it has no meaning from the point of view of the provider, I thought it was obvious, since he doesn't know anything about asynchronous sending.

Show
Victor NOËL added a comment - Tue, 8 Sep 2015 - 15:05:08 +0200 It means that from the point of view of the sender/consumer – the one who did the sendAsync and the one for whom the concept of expiration means something --, once the expiration occurred, it makes no sense for the component to send back this exchange (e.g., when an error occurred, or by default by returning true with the method onExpiredAsyncJBIMessage). Of course it has no meaning from the point of view of the provider, I thought it was obvious, since he doesn't know anything about asynchronous sending.

People

Dates

  • Created:
    Tue, 8 Sep 2015 - 11:20:20 +0200
    Updated:
    Tue, 8 Sep 2015 - 17:14:57 +0200
    Resolved:
    Tue, 8 Sep 2015 - 17:14:57 +0200