8 Replies Latest reply on Jun 9, 2010 6:08 AM by harinath mallepally

    EJB 3 clustering error

    harinath mallepally Newbie

      Hello,

       

      I am trying to create  clustered EJBs in a clustered jboss environment based on a load balancing requirement in our project.

       

      with some references on internet

      I tried

      @Clustered

      and also

      @Clustered(loadBalancePolicy = org.jboss.ha.framework.interfaces.RoundRobin.class)

       

      annotations in my SLSB EJB 3.0 bean class.

       

      But I am getting

       

       

      java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.jboss.annotation.ejb.Clustered.loadBalancePolicy()
      at java.lang.reflect.Method.getDefaultValue(Method.java:726)
      at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:99)

      .......

       

       

       

      Am i missing anything, please suggest if i need to do something else. any references will help.

       

      thanks in advance, harinath