1 Reply Latest reply on Jun 25, 2015 2:34 PM by Wolf-Dieter Fink

    EJB client, load balancing, failover jboss 5.1 ga

    Paweł Goździkowski Newbie


      I've got problem with failover of my ejb-client. The server I'm using is jboss 5.1 ga. The problem is that when first node is down (for example caused by OOM), my tomcats which use internally ejb remoteare still bound to this node and after while the pool of threads exceeds.

      I hoped that changeing from jndi to hajndi help me to resolve this issue, but it didn't.

      The way I create client is as follow:

      Properties props = new Properties();

      props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");

      props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");

      props.put(Context.PROVIDER_URL, url);

      initialContext = new InitialContext(props);