2 Replies Latest reply on Aug 29, 2003 8:30 PM by jonlee

    Precompile Jsp

    rollingbrock

      Is there a JBoss (with Jetty) setting to automatically precompile JSPs when JBoss starts?

        • 1. Re: Precompile Jsp
          ioparra

           

          "jonlee" wrote:
          There are two options for Jetty if you do not want to convert your JSPs into servlets manually.

          You can add a Jetty specific deployment file per web application that overrides the temp directories. This means that JBoss does not clean up the compiled JSPs when you bounce JBoss. I prefer this option as it means that the compilation only happens once, rather than on every JBoss bounce - good for performance in production. Tomcat does not have this option.

          Otherwise, you can use the J2EE way, which specifies that the JSPs load on startup (it still takes time on a JBoss bounce). The relevant thread is here - http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=


          • 2. Re: Precompile Jsp
            jonlee

             

            "jonlee" wrote:
            There are two options for Jetty if you do not want to convert your JSPs into servlets manually.

            You can add a Jetty specific deployment file per web application that overrides the temp directories. This means that JBoss does not clean up the compiled JSPs when you bounce JBoss. I prefer this option as it means that the compilation only happens once, rather than on every JBoss bounce - good for performance in production. Tomcat does not have this option.

            Otherwise, you can use the J2EE way, which specifies that the JSPs load on startup (it still takes time on a JBoss bounce). The relevant thread is here - http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=