0 Replies Latest reply on Jul 8, 2011 4:33 AM by reb00t

    RemoteHome not bound when Clustered

    reb00t

      Hi,

       

      I want to bind the remote home interface of an EJB3 StatelessSessionBean in a clustered environment. When I remove the @Clustered annotation, the remote home interface is bound in the JNDI-Tree correctly. If not, it is not bound an I get no error message in the server.log (jboss 4.2.3).

       

      My setting:

       

      public interface EJB3BusinessInterface { ... }

       

      public interface EJB2RemoteInterface extends EJBObject, EJB3BusinessInterface { ... }

       

      public interface EJB2RemoteInterfaceHome extends EJBHome { ... }

       

      @Stateless(name="SessionBean")

      @Remote(EJB3BusinessInterface.class)

      @RemoteHome(EJB2RemoteInterfaceHome.class)

      @Clustered

      public class EJB3SessionBean implements EJB3BusinessInterface { ... }

       

      jboss.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!-- <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> -->

      <jboss>

        <enterprise-beans>

        </enterprise-beans>

      </jboss>

       

      ejb-jar.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"

          version="3.0">

      </ejb-jar>