To disable state replication in a cluster for a
StatefulSessionBeanthe documentation mentions:
Starting JBoss EAP 7, if JBoss EAP is started using an HA profile, the state of your SFSBs will be replicated. You no longer need to use the
@Clusteredannotation to enable clustering behavior.
Disabling this behavior is achievable on a per-EJB basis by annotating your bean using
@Stateful(passivationCapable=false), which is new to the EJB 3.2 specification; or globally, via the ejb3 subsystem.
But this is not the case. When invoking multiple methods on a
StatefulSessionBean, different target nodes are being used.
- Red Hat JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.