1 Reply Latest reply on Apr 30, 2013 7:31 AM by rhusar

    External Configuration Files Replication across Cluster

    dmanibtech

      Hi,

       

      We are using external configuration file for our application. (Note: we are not bundled with the WAR!)

       

      E.g. In standalone mode, this config file is kept under, [JBossInstallPath]\standalone\configuration\myapp_config\config.xml [we implemented this lookup with the help of "jboss.server.base.path" env variable]

       

      The problem comes when we move this setup to domain mode, my clustering setup demands always this "myapp_config" folder to be located under [JBossInstallPath]\domain\servers\my_instance\configuration\myapp_config\config.xml. [Because here "jboss.server.base.path" points till "../my_instance"]

       

      Our objective is not to do this manually in all other slave nodes and its instances.

       

      Is there any suggested mechanism is there to solve this problem by,

        1. Will JBoss automatically replicate the config files in all other nodes?

        2. Is there any other approach is available to do this stuff in better manner?

       

      Any help would be much appreiciable.

       

      Thanks in advance!

       

      Regards,

      Mani

        • 1. Re: External Configuration Files Replication across Cluster
          rhusar

          How about something like?

           

          1. bundle with the jar/war/ear
          2. or bundle within another jar
          3. point to the NFS share where the file is copied once
          4. prepare a script that iterates over nodes and copies over
          5. feed the file from external source, eg via HTTP

           

          Simply put, the option is to get the file from a central shared point or to distribute the configuration file to every node.