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

David,

On 10/20/2011 12:11 PM, David kerber wrote:
> On 10/20/2011 11:52 AM, Barrera, Maribel wrote:
>> Hi,
>> 
>> We are currently using Tomcat 4 and would like to upgrade to
>> Tomcat 6 or 7. We would like Tomcat to run as a service and when
>> the service is started, it should start a servlet. How do I do
>> that ? Any help would be highly appreciated. Thanks.
> 
> Check the installation documentation for how to install it as a
> service, or it can be done at installation time using the install
> wizard.
> 
> Check the docs for the ContextInitialized() method for having
> things execute at start up.

Better yet, either use <load-on-startup> in web.xml if you need the
servlet started immediately. If you have a process that needs to
execute at server startup (really webapp startup) that doesn't have
anything to do with a particular request, it's better to use a
ServletContextListener.

Maribel, since you're coming from TC 4 and the old 2.3 spec, I'd
highly recommend getting an updated copy of the spec (very readable)
and browsing through it. Most of it is still the same, but there are
some nice new features you should be aware of.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6gh7cACgkQ9CaO5/Lv0PA9uwCgvUXdjhvnD431Vyj7HM1bPj0r
ZtgAni7LE3cU17ZCLCrDjDaz2STgu1pb
=zODt
-----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