Petals CDK

Improve notification subscriber support

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 5.0.3
  • Fix Version/s: 5.1
  • Component/s: Notifications
  • Security Level: Public
  • Description:
    Hide

    When a notification subscriber wants to register to receive notifications, it may be possible that the notification broker is not available or that an exception is throwed by the notification engine for multiple reasons.
    It should be possible to configure the subscriber to retry registration N times and it also must be asynchronous to avoid long delays.

    Show
    When a notification subscriber wants to register to receive notifications, it may be possible that the notification broker is not available or that an exception is throwed by the notification engine for multiple reasons. It should be possible to configure the subscriber to retry registration N times and it also must be asynchronous to avoid long delays.
  • Environment:
    All

Issue Links

Activity

Hide
Christophe Hamerling added a comment - Mon, 30 Aug 2010 - 16:04:32 +0200

This type of operation is generally used in SU listeners on deploy and start. Adding such retry feature means that it must be an asynchronous task and really need more work on the CDK by introducing this asynchronous aspect on the SU manager with callback handlers.
On the other side, a native support of such things (out of SU scope) is potentially a good idea but the CDK also need many work for that; I suggest that we postpone this issue for a future major version of the CDK.

For now (and since the notification is not part of the core CDK API), by getting a reference to AbstractComponent, ones can get the NotificationService instance and get the Sender which can be used as communication channel between the component and the notification layer by abstracting the JBI world.

Show
Christophe Hamerling added a comment - Mon, 30 Aug 2010 - 16:04:32 +0200 This type of operation is generally used in SU listeners on deploy and start. Adding such retry feature means that it must be an asynchronous task and really need more work on the CDK by introducing this asynchronous aspect on the SU manager with callback handlers. On the other side, a native support of such things (out of SU scope) is potentially a good idea but the CDK also need many work for that; I suggest that we postpone this issue for a future major version of the CDK. For now (and since the notification is not part of the core CDK API), by getting a reference to AbstractComponent, ones can get the NotificationService instance and get the Sender which can be used as communication channel between the component and the notification layer by abstracting the JBI world.

People

Dates

  • Created:
    Fri, 27 Aug 2010 - 11:26:48 +0200
    Updated:
    Tue, 23 Nov 2010 - 15:39:15 +0100
    Resolved:
    Wed, 1 Sep 2010 - 10:32:29 +0200