3 Replies Latest reply on Sep 10, 2008 1:18 PM by zlf

    Use updated classes/jsp pages without reboot

    zlf

      Now, I have to restart JBoss or redeploy entire application ear even I just update a simple jsp/class. Either or them are too time-expensive (will take about 2 minutes on my machine). Is there any way to ask JBoss to use the update jsp/class files without reboot?

      Thanks

      zlf

        • 1. Re: Use updated classes/jsp pages without reboot

          why rebooting ? it's really not necessary. Simply redeploy your ear package and the application will be reloaded.

          A shortcut is deploying the ear as exploded directory.
          Then change the timestamp of META-INF/application.xml file

          In unix
          $ touch META-INF/application.xml

          or simply add an empty space to the file from a text editor and save it.
          regards

          • 2. Re: Use updated classes/jsp pages without reboot

            ops sorry I didn't read correclty your question: so you don't want even to reload your ear...

            Go to http://localhost:8080/jmx-console/

            1. see section jboss.web
            2. click on host=localhost,path=/Test,type=Loader (here Test is web application name)
            3. make reloadable attribute’s value = true
            4. click on "Apply Changes" button
            5. you will see INFO [StandardContext] Reloading this Context has started message displayed in jboss console.

            ...well I have tested this but only with a .war module, not with an .ear
            Let me know if it works.

            • 3. Re: Use updated classes/jsp pages without reboot
              zlf

              Thank you for your reply.
              But unfortunately, it does not work for my web app.
              It tried host=localhost,path=/jbossws,type=Loader, does not work as well.
              I'm using JBoss4.2.2. Can you tell me your JBoss version? Thanks