4 Replies Latest reply on Jan 29, 2013 10:06 AM by Radoslav Husar

    How to make remote call of EJB in mod_cluster?

    Júlio Pires Newbie

      Hi,

      I'm doing a basic test of remote call of EJB in a cluster with the following scenario:

       

      Environment:

      • Two JBoss 7.2.0.Alpha1 (jboss-as-7.2.0.Alpha1-SNAPSHOT - Build #3363 (Jan 28, 2013 7:31:47 AM))
      • mod_cluster 1.2.0
      • JDK 1.7.0_11


      Computer 1:
      - Node A and B: 192.168.20.128 (same machine with offset of ports);

       

      Configurations:

      • Node A (IP: 192.168.20.128, Port: 4447)
      • Node B (IP: 192.168.20.128, Port: 4647)

       

      Computer 2:
      - httpd + Modcluster: 192.168.20.243

       

      Configurations:


      • http.conf

      ServerName 192.168.20.243

      LoadModule slotmem_module modules/mod_slotmem.so

      LoadModule manager_module modules/mod_manager.so

      LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so

      LoadModule proxy_cluster_module modules/mod_proxy_cluster.so

      LoadModule advertise_module modules/mod_advertise.so

      LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so

       

      CustomLog "/var/log/httpd-access.log" combined

       

      MemManagerFile /var/cache/httpd

       

      <VirtualHost 192.168.20.243:80>

        <Directory />

         Order deny,allow

         Deny from all

         Allow from all

      </Directory>

       

      # This directive allows you to view mod_cluster status at URL http://192.168.20.243:80/mod_cluster-manager

      <Location /mod_cluster-manager>

        SetHandler mod_cluster-manager

        Order deny,allow

        Deny from all

        Allow from all

      </Location>

      KeepAliveTimeout 60

      MaxKeepAliveRequests 0

      ManagerBalancerName other-server-group

      AdvertiseFrequency 5

      ServerAdvertise On

      EnableMCPMReceive

      </VirtualHost>

       

       

      Question:
      - How do remote call of EJB in mod_cluster?
      I configured the properties, but returns the following error:

      PM org.jboss.ejb.client.remoting.ConfigBasedEJBClientContextSelector setupEJBReceivers

      WARN: Could not register the EJB receiver for connection to 192.168.20.243:4447

      java.lang.RuntimeException: Operation failed with status WAITING