Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2234

Clustered @Singleton

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • TBD AS 7, TBD EAP 6
    • None
    • None

    Description

      It should be possible to create a clustered singleton by just adding the @Clustered annotation.

      @Singleton
      @Clustered
      public class MyScheduler {
      }

      Care should be taken that the life-cycle callbacks are only invoked once on one node, the other nodes will only receive the state of the singleton after post-construct.

      Concurrency management of the singleton should happen cross-cluster, so that a singleton with read lock can be concurrently invoked on any node. After existing a method with a write lock the state must be synchronized across the cluster before new invocations are processed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-engineering-cdewolf Carlo de Wolf
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: