1 Reply Latest reply on Apr 14, 2010 4:10 PM by yura.taras

    Embedded JBoss - clustered EJB3

      Hi all

       

      Is it possible to use Embedded JBoss to deploy clustered EJB3 stateful beans? I receive message like this:

       

      jboss.j2ee:jar=classes,name=UserManagmentActionImpl,service=EJB3 -> javax.management.MalformedObjectNameException: Key properties cannot be empty

       

      If I remove @Clustered and @CacheConfig(name = "sfsb-cache") annotations, bean is deployed successfully.

       

      I've been trying to configure Embedded JBoss to provide sfsb-cache cluster (I guess this is the problem but I may be wrong), but I failed. Still, I'm new in both embedded jboss and jboss clustering, so probably there are things I may be wrong in. I've attached bootstrap-beans.xml, which I'm using - is it possible my cache config lacks something?

       

      Thanks.

        • 1. Re: Embedded JBoss - clustered EJB3

          Looks like it can be fixed with JBoss AOP. I've changed ejb3-interceptors-aop.xml:

          {code:xml}

                <!-- Clustered cache configuration -->
                <annotation expr="!class(@org.jboss.ejb3.annotation.Cache) AND class(@org.jboss.ejb3.annotation.Clustered)">
                   @org.jboss.ejb3.annotation.Cache ("NoPassivationCache") <!-- I've changed default value to this one-->
                </annotation>

          {code}

          That fixed my problem.