4 Replies Latest reply on Apr 1, 2010 5:21 PM by nnanda

    JBoss 5.1 AS Properties Service

    nnanda

      Hi All,

       

      We are using JBoss 5.1 AS and we load few global settings as system properties through Properties Service provided by JBoss. We load our global setting properties by configuring a path in properties-service.xml file. I had used JBoss 4.2.3 AS for one of my previous projects; and I noticed when we used to update the properties file while server is running, JBoss used to reload the new properties. In JBoss 5.1, however, this auto reloading is not happening.

       

      Is this an issue with JBoss 5.1? Or I should be doing any other configuration to activate this auto reloading.

       

      Thanks,

      Niranjan

        • 1. Re: JBoss 5.1 AS Properties Service
          nnanda

          No one seems to have an answer. Common guys.... I don't think I have asked a very complicated/difficult question.

           

          Please I need this urgently...

           

          Thanks,

          Niranjan

          • 2. Re: JBoss 5.1 AS Properties Service
            peterj

            So you are saying that you modify the properties file but not the properties-service.xml file?

             

            I just now tried it, and changing the properties file does nothing. But then I change the properties-service.xml file and the properties file gets reloaded.

            • 3. Re: JBoss 5.1 AS Properties Service
              peterj

              I just now tried this with 4.2.3. It also does not reload the properties file changes until the properties-service.xml file is changed and it gets reloaded.

              • 4. Re: JBoss 5.1 AS Properties Service
                nnanda

                Hi Peter,

                 

                Thanks for clarifying. I think I missed that point. It was indeed changing the properties-service.xml rather than changing the properties file.

                 

                My bad. Sorry for this.

                 

                But my intention behind this question was to streamline our deployment model. We do not run cluster, but we run multiple JBoss instances and load balance them using a hardware load balancer and Apache MOD JK provided by our network team. Now all I wanted is to provide a single file (properties-service.xml) for all my JBoss instances on the same physical box. So that, adding/removing the properties in my global properties file doesn't require to restart the app servers. I will open a different discussion for this.

                 

                Once again thank you a lot for your time.

                 

                Best,

                Niranjan