This content has been marked as final.
Show 2 replies
-
1. Re: rename cluster but need to annotate all sessession bean
vulee Apr 12, 2007 6:40 PM (in response to vulee)Any feedback on this post?
-
2. Re: rename cluster but need to annotate all sessession bean
brian.stansberry Apr 12, 2007 6:54 PM (in response to vulee)It can be specified in XML; in jboss.xml for each clustered bean add:
<clustered>true</clustered> <cluster-config> <partition-name>${jboss.partition.name:DefaultPartition}</partition-name> </cluster-config>
I believe support for that was only added in EJB3 RC9 (last June) so you may have to upgrade your EJB3.
In 4.2.0, the value of the @Clustered annotation 'partition' attribute will default to whatever you pass to -g at startup (or to DefaultPartition if -g is not used.)