2 Replies Latest reply: May 5, 2011 10:43 AM by K. Bachl RSS

    programmatic configuration problem (IS 5.0.0.CR1; jgroups)

    K. Bachl Newbie

      Hello,

      I'm quite new to infinispan and tried out the 5.0.0.CR1 today. So far it works quite well, but one thing I couldn't find out so far is how I can limit the grid range to certain IP's.  

      My scenario is that I have several webapps on a single machine. To share config and data I want to make a local clustered grid based upon Replication.

       

      So far I tried these settings to make jgroups limited to local box:

       

      GlobalConfiguration gc = GlobalConfiguration.getClusteredDefault();

      gc.fluent().transport().addProperty("bind_addr", "127.0.0.1");

      Configuration c = new Configuration();

      c.fluent().clustering().mode(Configuration.CacheMode.REPL_SYNC);

      cacheManager = new DefaultCacheManager(gc, c);

       

      apart from "bind_addr", "127.0.0.1" I also used:

       

      gc.fluent().transport().addProperty("jgroups.bind_addr", "127.0.0.1");

      gc.fluent().transport().addProperty("jgroups.bind_addr", "LINK_LOCAL");

      gc.fluent().transport().addProperty("jgroups.bind_addr", "SITE_LOCAL");

       

      However, all I get is this all the time:

       

      ISPN00078: Starting JGroups Channel|#]

      ISPN00088: Unable to use any JGroups configuration mechanisms provided in properties {bind_addr=127.0.0.1}.  Using default JGroups configuration!|#]

      [#|2011-04-29T23:36:14.776+0200|INFO|glassfish3.0.1|org.jgroups.JChannel|_ThreadID=26;_ThreadName=Thread-2;|JGroups version: 2.12.0.Final|#]

       

      Best,

       

      KBachl