Re: Init timing for ring web servlet running on Jetty?

2011-03-31 Thread Mike Meyer
On Thu, 31 Mar 2011 06:55:08 -0400 Allen Johnson wrote: > > Is there some way to convince Jetty (or tomcat, or ...) to run the > > init methods of a servlet before the first request comes in? Or maybe > > a pointer to the appropriate forum? > > You can tell a servlet to init on startup with some

Re: Init timing for ring web servlet running on Jetty?

2011-03-31 Thread Allen Johnson
> Is there some way to convince Jetty (or tomcat, or ...) to run the > init methods of a servlet before the first request comes in? Or maybe > a pointer to the appropriate forum? You can tell a servlet to init on startup with something like this in your web.xml: test-servlet myapp.servlet

Init timing for ring web servlet running on Jetty?

2011-03-31 Thread Mike Meyer
I finally got back to the web app that needed init'ing before processing requests, and got that working (not quite as straightforward as the various mails/docs make it look). The problem now is that the init runs when the first request comes in after the app has been started. While this works, it