0 Replies Latest reply on Oct 8, 2008 12:34 AM by luong duy

    Cannot loadbalance SLSB

    luong duy Newbie

      I do all thing as cluster doc said. But SLSB cannot loadbalance. I run 2 Jboss AS instance on my destop, only one Jboss AS reply for my call. If I shutdown that Jboss AS, my client side will get error (-> cannot failover)

      this is my config:

      - jboss.xml :


      - client code :
       Properties props = new Properties();
       props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
       props.setProperty("java.naming.factory.url.pkgs", "jboss.naming:org.jnp.interfaces");
       props.setProperty("jnp.partitionName", m_PartitionName);
       props.setProperty("java.naming.provider.url", m_JNDIServerList);
       InitialContext ctx = new InitialContext(props);
       Object ejbHome = ctx.lookup("ServerBean");
       ServerHome serverHome = (ServerHome) PortableRemoteObject.narrow(ejbHome, ServerHome.class);
       Server server = serverHome.create();

      Please help me to resolve this problem