Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6869

Cannot specify default loadBalancePolicy for Clustered EJB3s

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.2 ER1
    • EAP_EWP 5.1.0
    • Clustering
    • None
    • Release Notes
    • Hide
      It was not possible to specify default loadBalancePolicy for Clustered EJB3s because the EJBs already had @Clustered on them. This has been corrected and you can now edit $JBOSS_HOME/server/all/deployers/ejb3.deployer/META-INF/ejb3-deployers-jboss-beans.xml and add properties such as <property name="defaultLoadBalancePolicy">RoundRobin</property>, or specify fully qualified class names such as <property name="defaultLoadBalancePolicy">org.jboss.ha.client.loadbalance.RoundRobin</property>

      The default for defaultLoadBalancePolicy is <code>org.jboss.ha.client.loadbalance.RoundRobin</code> if not specified.
      The default for defaultStickyLoadBalancePolicy is <code>org.jboss.ha.client.loadbalance.FirstAvailable</code> if not specified.
      Show
      It was not possible to specify default loadBalancePolicy for Clustered EJB3s because the EJBs already had @Clustered on them. This has been corrected and you can now edit $JBOSS_HOME/server/all/deployers/ejb3.deployer/META-INF/ejb3-deployers-jboss-beans.xml and add properties such as <property name="defaultLoadBalancePolicy">RoundRobin</property>, or specify fully qualified class names such as <property name="defaultLoadBalancePolicy">org.jboss.ha.client.loadbalance.RoundRobin</property> The default for defaultLoadBalancePolicy is <code>org.jboss.ha.client.loadbalance.RoundRobin</code> if not specified. The default for defaultStickyLoadBalancePolicy is <code>org.jboss.ha.client.loadbalance.FirstAvailable</code> if not specified.
    • Documented as Resolved Issue
    • NEW

    Description

      Tried using ejb3-interceptors-aop.xml, however it seems you cannot modify @Clustered annotations, since the EJBs already have @Clustered on them.

      This file is where the defaults are currently, This file can be modified to allow you to specify the default loadBalancePolicy to be specified and the default sticky load balance policy in the $JBOSS_HOME/server/$PROFILE/deployers/ejb3.deployer/META-INF/ejb3-deployers-jboss-beans.xml
      jboss-ejb3-proxy-clustered-1.0.3/src/main/java/org/jboss/ejb3/proxy/clustered/registry/ProxyClusteringRegistry.java

      Attachments

        Issue Links

          Activity

            People

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-bmaxwell Brad Maxwell
              Russell Dickenson Russell Dickenson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: