1 Reply Latest reply on Oct 14, 2010 4:35 PM by mircea.markus

    How to set bind_addr in Infinispan config?

    michal_szymanski

      I would like to set bind_addr using Inifinispan config instead -Djgroups.bind_addr=<ip addres>. We cannot use -D because we use Infinispan in Tomcat.

      I think that we can use <properties> in <tranport> sectition but what should I add?

       

      <transport clusterName="CarrierexWebServiceAPI">
              <properties>
                  WHAT TO ADD HERE?
                 </properties>
          </transport> 

        • 1. Re: How to set bind_addr in Infinispan config?
          mircea.markus

          A way to do it is:

           

          1) define jgroups config in an external xml file

                <transport clusterName="infinispan-cluster" distributedSyncTimeout="50000" nodeName="Jalapeno">
                   <properties>
                      <property name="configurationFile" value="config-samples/jgroups-udp.xml"/>
                   </properties>
                </transport>

                <transport clusterName="infinispan-cluster" distributedSyncTimeout="50000" nodeName="Jalapeno">

                   <properties>

                      <property name="configurationFile" value="config-samples/jgroups-udp.xml"/>

                   </properties>

                </transport>

          2. add your binding address as an attribute to to trasnport protocol(that is wither TCP or UDP). E.g.:

             <TCP bind_port="7800"

                  bind_addr="127.0.0.1"

                  loopback="false"