Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-182

Cluster Lifecycle Events

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Minor
    • TBD
    • 1.1.EDR
    • Events
    • None

    Description

      CDI 1.1 defines a set of lifecycle events related to different context
      within the application. We see a need to also define cluster lifecycle
      events for applications.

      These events could, for example, be used for subscribing/allocating
      and unsubscribing/deallocating external services/resources.

      More specifically, a @Cluster event that gets fired when an
      application gets @Initialized in the cluster, that is, post
      @Application @Initialized. And another @Cluster event that gets fired
      when the application get @Destroyed in the cluster, that is, pre
      @Application @Destroyed. These events only fires once per application
      and cluster, independent on how many cluster instances exists.

      Events are fault tolerant meaning that events are not affected by
      failing instances going out-of-service, as long as the cluster is
      still working. Notice that the @Destroyed event is of course only
      invoked if the cluster terminates gracefully.

      Attachments

        Activity

          People

            Unassigned Unassigned
            krisskross_jira Kristoffer Sjögren (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: