In WF10, your @Stateful EJBs will automatically be clustered when deployed using an HA profile. This behavior can be disabled per bean via the @Stateful(passivation-capable=false) annotation (or via respective deployment descriptor).
Thanks Paul, but it's not enough for me to understand it completely. A "Profile" is only a set of miscelaneous configuration snippets and so on. There are some differences between the ha config and a non ha. There are the jgroups and modcluster subssystems, some config in infinispan and so on. Which of them ist "the one" who is responsible for switching the clustering of the ejb on and off?
The configuration for @Stateful EJBs is found in the ejb3 subsystem configuration.
The non-ha profiles use cache-ref="simple", whereas the ha profiles use cache-ref="distributable".
Thank you Paul!