4 Replies Latest reply on Oct 17, 2005 5:39 AM by jaikiran

    Correct directory in JBoss where config files are hot-deploy

    jaikiran

      Hi,
      I have some application specific config files which can be changed by the user even when the server is up and running. I had initially placed these files in a jar file under my applications ear file. But since changes to these files would mean extracting that jar and then reconstructing that jar, i moved these application specific files to server/default/conf directory.

      Everthing works fine, except hot deploy. i.e. if i make some changes to these files under the conf directory when the server is running, these DONT get reflected. Is there any other place where i can place these files so that they can be hot deployed(P.S.: i load these files in my source code. So they should be available in the server classpath)

      Thank you.

        • 1. Re: Correct directory in JBoss where config files are hot-de
          anders.hedstrom

          Hi,

          have you tried to deploy your ear exploded. Then you could keep your file(s) in your folder structure and JBoss will redeploy your application every time you change the files.

          Cheers
          //Anders

          • 2. Re: Correct directory in JBoss where config files are hot-de
            jaikiran

            Thanks Anders, for replying.

            Actually my application structure is as follows:

            myApp.ear(Exploded)
            |
            |____ myApp.jar(UnExploded)
            | |
            | |____ conf files.xml
            |
            |____ myApp.war(UnExploded)

            As shown above, myApp.ear is exploded. This contains myApp.jar which is NOT exploded. myApp.jar inturn contains the configuration files. Right now during development, we plan to keep the ear exploded. But once the product is rolled out, we MAY NOT be having the ear in exploded form. So placing the conf files in the ear might not be useful

            • 3. Re: Correct directory in JBoss where config files are hot-de
              anders.hedstrom

              Hi again,

              I tested my suggested solution, and it didn't work. It seems like JBoss will only redeploy the exploded application if you edit the deployment descriptor.

              In my case I've a web application that I deploy exploded:

              webapp.war (exploded)
               |---WEB-INF
               |---web.xml (changed this one, JBoss redeployed app)
               |---jboss-web.xml (changed this one, JBoss didn't redeploy app)
               |---my-conf.xml (changed this one, JBoss didn't redeploy app)
              


              Cheers

              //Anders

              • 4. Re: Correct directory in JBoss where config files are hot-de
                jaikiran

                 

                "anders.hedstrom" wrote:
                It seems like JBoss will only redeploy the exploded application if you edit the deployment descriptor.


                Ya you are right. Exploding the ear wont yield the results.

                Thanks for spending your time on this :-)