2 Replies Latest reply on Jan 28, 2005 7:40 AM by de vito gabriele

    Strange behaivour of jboss cluster

    de vito gabriele Newbie

      Hi all,
      I have two Host (A,B).
      Each host has a multihomed Jboss installation.
      Server A : Address ipA1, Address IpA2
      Server B : Address ipB1, Address IpB2

      Server A : Jboss1, Jboss2
      Server B : Jboss1, Jboss2

      Each Jboss1 is in the same cluster.
      Jboss2 are another cluster.

      My jboss version is 3.2.2.

      Jboss1 contains a j2ee application and hosts some ejbs (Stateless EJB)
      Jboss2 contains only ejbs (Stateless EJB).

      In a JSP page I do two lookups : one for an EJB hosted by Jboss1 and
      one for an EJB hosted by Jboss2. Jndi query are cached.


      If I stop Jboss2, sometimes I get Service unavalible in the stack trace.
      But this happends only for ejbs of Jboss2.
      My jndi lookup looks like this :
      p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      p.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL,"ipA1:1101,ipA2:1101");
      p.put("jnp.partitionName","myPartition");
      p.put("jnp.discoveryGroup","224.10.10.10");
      p.put("jnp.discoveryPort","1103");


      Moreover, Jboss1 and Jboss2 have different Partition and Multicast
      address. Each Jboss is started with --host option.


      Anyone can help me ?

      BEST REGARDS

        • 1. Re: Strange behaivour of jboss cluster
          Sean Boltman Newbie

          For clarification: what exactly is meant by "multi-homed" ?
          I have seen thisterm in other dicsussion?

          Is it "Two different Nodes whose cluster-service.xml references the same Partition" ?

          • 2. Re: Strange behaivour of jboss cluster
            de vito gabriele Newbie

            Multihomed means that :

            Each ServerA and ServerB has two jboss instances with different Ip address binded.

            Ex.:
            Server A ==> two Ip Alias : 192.168.10.186, 192.168.10.188
            First Jboss Instance
            192.168.10.186 jboss.bind.address

            Second Jboss Instance
            192.168.10.188 jboss.bind.address


            Server B ==> two Ip Alias : 192.168.10.187, 192.168.10.189
            First Jboss instance
            192.168.10.187 jboss.bind.address

            Second Jboss instance
            192.168.10.189 jboss.bind.address


            Each First JBoss instance of ServerA and Server B forms a Cluster
            in the DefaultPartition with the same multicast ip address and
            group (HAJndi 1100).

            Each Second Jboss instance of Server A and Server B forms another
            Cluster in MyPArtition with the same multicast ip address and group
            but different from the first Jboss instance
            HAJNdi 1101

            BEST regards.