0 Replies Latest reply on Sep 12, 2007 9:34 AM by sylviav

    JBoss Clustering configuration

    sylviav

      Hai,

      I am using JBoss4.0.5.I need to implement JMS and JNDI Clustering for my J2EE Application. I configured the required files given in Clustering document downloaded from this site.

      For connecting with queue i used the following context

      Properties p = new Properties();
      p.put(Context.INITIAL_CONTEXT_FACTORY,
      "org.jnp.interfaces.NamingContextFactory");
      p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
      p.put(Context.PROVIDER_URL, "localhost:1100"); // HA-JNDI port.
      return new InitialContext(p);

      and in jndi.properties file i configured the following on 2nd node(192.168.1.15)
      java.naming.provider.url=192.168.1.19:1100,192.168.1.15:1100

      I started two nodes one in 192.168.1.19 and other in 192.168.1.15 both in a default cluster "default partition". While starting first node (192.168.1.19) the queue gets binded. But i am not able to connect queue nwith the above initial context. It throws "NameNotFoundException". But if i use localhost instead of localhost:1100 it works. I think the later one doesnt support clustered JNDI. I have searched in many documents and no clear steps/configuration details are given for Jboss clustering. Its very difficult for the beginners to understand the current document which doesnt contain full details.I created shared database by changing DefaultDS in trial and error only. In which files we need to change is not given in document.I need all the configuration details and document..Kindly help me.Its urgent...

      Thanks in Advance,
      Sylvia