-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Vance,

On 5/18/12 12:29 PM, Vance - wrote:
> The servlet I have in mind for modification is the one responsible
> for performing the search as well as for getting the next page of
> search results. If one or more of the wikis is unavailable, I want
> to display an error message on the search results page.

I'm not sure that's entirely relevant.

> The wiki availability check won't be done all the time, as I
> mentioned before, just every so often, say, every 30 minutes.

Again, not sure that's relevant. If you are going to do things
periodically, then the place to kick-off the thread is in a
ServletContextListener and not in a servlet.

> Why would using a ServletContextListener be better than using a
> servlet?

Because that's the most appropriate place to do it: servlets can be
started and stopped, started multiple times, run in parallel, etc. --
however the container wants to do things. ServletContextListeners are
well-defined to only be called on startup and shutdown.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+6myQACgkQ9CaO5/Lv0PCIWgCePuqidEy+iLnmzQTF5bNvJlBJ
ffIAoKvQ8Xp2v15Q7Xia9i1qlCmA2jWl
=kA23
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to