[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-2234) Clustered @Singleton

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Wed Jan 26 07:55:52 EST 2011


    [ https://issues.jboss.org/browse/EJBTHREE-2234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577949#comment-12577949 ] 

Carlo de Wolf commented on EJBTHREE-2234:
-----------------------------------------

Note that this feature is diametrical opposed to spec requirement EJB 3.1 FR 4.8 Singleton Session Beans: "In cases where the container is distributed over many virtual machines, each application will have one bean instance of the Singleton for each JVM."

> Clustered @Singleton
> --------------------
>
>                 Key: EJBTHREE-2234
>                 URL: https://issues.jboss.org/browse/EJBTHREE-2234
>             Project: EJB 3.0
>          Issue Type: Feature Request
>            Reporter: Carlo de Wolf
>              Labels: clustered
>             Fix For: TBD AS 7, TBD EAP 6
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list