Good. I thought it would be convenient to use an already existing JSP page as a warmup call. Plus, that makes it possible to ensure that the warmup call actually accesses the real logic of the application. And if/when the application changes, the warmup call will automatically reflect those changes without having to maintain a separate warmup servlet.
Another thing that I'm not sure about yet is that maybe JSP pages get recompiled for every new Google App Engine instance! Then it's important to make warmup calls to all JSP pages that need to be compiled for fast first access. For example by having a separate warmup JSP page that does dynamic include of other JSP pages. Or maybe the compile if very fast nowadays. Or maybe JSP pages that are already compiled remains compiled when new Google App Engine instances are started. I have to research that. JSP dispatch from a separate warmup servlet could be a good idea. On Tue, May 17, 2011 at 12:36 AM, Ikai Lan (Google) <ika...@google.com>wrote: > Yes. Warmup servlets are just URL for you to hit: > > > http://code.google.com/appengine/docs/java/config/appconfig.html#Warmup_Requests > > > <http://code.google.com/appengine/docs/java/config/appconfig.html#Warmup_Requests>That > being said, why would you want to use a JSP as a warmup servlet? The code > will be easier to test/maintain in a servlet itself. Worst case scenario you > can always use JSP dispatch to the JSP. > > Ikai Lan > Developer Programs Engineer, Google App Engine > Blog: http://googleappengine.blogspot.com > Twitter: http://twitter.com/app_engine > Reddit: http://www.reddit.com/r/appengine > > > > On Sun, May 15, 2011 at 11:18 PM, Anders <i...@blabline.com> wrote: > >> Is it possible to use a JSP page as a warmup Servlet in Google App Engine >> for Java? >> >> Example: >> >> <servlet> >> <servlet-name>search</servlet-name> >> <jsp-file>/search.jsp</jsp-file> >> <load-on-startup>1</load-on-startup> >> </servlet> >> >> Sice JSP pages are compiled into Servlets this should work in theory, >> unless JSP pages and ordinary Servlets are treated differently under the >> hood. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> google-appengine-java@googlegroups.com. >> To unsubscribe from this group, send email to >> google-appengine-java+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-java@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.