Petals CDK

Native service endpoint must be registered/unregistered on component initialization/shutdown

Details

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

    As a rule, in Petals, an endpoint is registered on its deployment, and unregistered on its undeployment.

    So, the native service endpoint should be registered when installing the component because the installation is similar to a deployment. And it should be unregistered when uninstalling the component.

    But when installing the component, the component itself that is required to do endpoint registration (Component.getServiceDescription(...) is invoked by ComponentContext.activateEndpoint(...)) is not available yet. Only the component bootstrap is available.

    So, to have the native service endpoint registered the most time it must be registered on component initialization instead of component startup, and its unregistration must occur on component shutdown instead of component stop.

    Show
    As a rule, in Petals, an endpoint is registered on its deployment, and unregistered on its undeployment. So, the native service endpoint should be registered when installing the component because the installation is similar to a deployment. And it should be unregistered when uninstalling the component. But when installing the component, the component itself that is required to do endpoint registration (Component.getServiceDescription(...) is invoked by ComponentContext.activateEndpoint(...)) is not available yet. Only the component bootstrap is available. So, to have the native service endpoint registered the most time it must be registered on component initialization instead of component startup, and its unregistration must occur on component shutdown instead of component stop.
  • Environment:
    -

Activity

Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
18s
1
Christophe DENEUX
Tue, 30 Sep 2014 - 17:01:30 +0200
Open Open In Progress In Progress
6m 48s
1
Christophe DENEUX
Tue, 30 Sep 2014 - 17:08:18 +0200
In Progress In Progress Resolved Resolved
1d 21h 30m
1
Christophe DENEUX
Thu, 2 Oct 2014 - 14:39:04 +0200

People

Dates

  • Created:
    Tue, 30 Sep 2014 - 17:01:12 +0200
    Updated:
    Thu, 2 Oct 2014 - 14:39:04 +0200
    Resolved:
    Thu, 2 Oct 2014 - 14:39:03 +0200