Hi Lam,

It seems this is the purpose of TomCat's isWorkDirPersistent configuration
(check out your SERVER.XML).  If you set this flag to "true" for a
particular context, TomCat will keep the generated servlets and reuse them
if you shutdown/restart TomCat.  You could visit all pages in your
development site and zip the work directory and distribute it.

Unfortunately, this option causes the JVM (1.2.2 and 1.3.0beta, Win32) to
crash.  I have just filed a bug report.  Maybe other versions (JSWDK? JDK
1.2.0/1.2.1?) will work?

----- Original Message -----
From: "Lam, Kelvin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 04, 2000 4:16 PM
Subject: Re: How to pre-compile jsp pages under JRUN and JSWDK/TOMCAT


> For the benefit of this list, I got 2 replies on this question:
>
> 1.  Switch to another JSP engine:
>         To try GNUJSP compiler.
>         jsp --> java --> class
>
>         (I don't really know what it means but I thought all JSP will go
> thru this steps, but since I am not using GNUJSP, it does not apply to me
> anyway.)
>
> 2.  Use a faster java compiler:
>         Not sure what platform you're using, but I'm using the IBM Jikes
>         compiler on RedHat 6.1 and it flies! I've also tested the Symantec
>         compiler - sj.exe - on NT and it is much faster than javac. Also,
if
>         you're using NT and happen to have a copy of the MS vm, you can
> always
>         jvc.exe, which is very fast too.
>
> (None seems to suggest that it is possible to "pre-compile" all my JSP
> pages.  So I guess I am out of luck.  Thanks anyway.
> By the way, I am on NT platform.  But my problem should apply to any
> platform, ie. how can you "pre-load" the web application and eliminate the
> .jsp to .class step and provide a more consistant response time on jsp
page
> request.)
>
> -Kelvin
>
> > ----------
> > From:         Lam, Kelvin[SMTP:[EMAIL PROTECTED]]
> > Reply To:     Lam, Kelvin
> > Sent:         Sunday, January 02, 2000 11:47 AM
> > To:   [EMAIL PROTECTED]
> > Subject:      How to pre-compile jsp pages under JRUN and JSWDK/TOMCAT
> >
> > Anyone knows how you can "pre-compile" all your JSP pages under JRUN or
> > JSWDK or Tomcat?  I would like to eliminate the long (relatively) delay
on
> > the first time access to the jsp pages.  (I know, I know, you can always
> > visit every pages personally, but it is getting tiresome after
awhile...)
> > Can it be done?
> >
> > Thanks.
> >
> > -Kelvin
> >
> >
==========================================================================
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > FAQs on JSP can be found at:
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to