1 Reply Latest reply on Mar 28, 2006 9:50 AM by oglueck

    XML config for clustered SB

    Novice

      Hi,

      I am trying to configure an EJB3 session bean for clustering. As my cluster partition names are dependent on the deployment, I can not use the @Clustered annotation because this would hardcode the name. So I want to use the jboss.xml file to configure the clustering property. However I can not seem to find documentation for EJB3 on that. All I find is clustering for EJB2.1 session beans but that doesn't seem to apply anymore.

      I have also tried to read the deployment descriptor code and figure out how it is done. I ended up with this:

      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>MyBean</ejb-name>
       <clustered>
       <partition-name>myPartition</partition-name>
       </clustered>
       </session>
       </enterprise-beans>
      </jboss>
      


      Didn't work. Can anybody give an example of the correct XML configuration, please?