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

    Details

    • Affects:
      Release Notes
    • Release Notes Text:
      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.
    • Release Notes Docs Status:
      Documented as Resolved Issue
    • Docs QE Status:
      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bmaxwell Brad Maxwell
                  Reporter:
                  bmaxwell Brad Maxwell
                  Writer:
                  Russell Dickenson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: