Results 1 to 2 of 2
  1. #1
    sandeepkk2005 is offline Member
    Join Date
    Nov 2007
    Posts
    18
    Rep Power
    0

    Default Start a servlet when Tomcat Starts

    I have a servlet which constantly monitors file system/database for changes.
    I want that servlet to be started automatically when the Tomcat starts.
    I am using Apache Tomcat 6.

    Thanks
    Sandeep

  2. #2
    wsaryada is online now Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default

    Can this be done by implementing a ServletContextListener instead of using a Servlet?

Similar Threads

  1. Tomcat In Eclipse - Sysdeo Tomcat Plug-in
    By JavaForums in forum Eclipse
    Replies: 1
    Last Post: 02-13-2008, 10:33 AM
  2. Datasource starts after web application
    By anosh_nathaniel in forum XML
    Replies: 0
    Last Post: 12-12-2007, 10:49 AM
  3. Datasource starts after web application
    By anosh_nathaniel in forum XML
    Replies: 0
    Last Post: 12-12-2007, 10:47 AM
  4. Replies: 1
    Last Post: 08-07-2007, 03:47 PM
  5. Starts with JBuilder
    By mathias in forum Other IDEs
    Replies: 1
    Last Post: 08-07-2007, 06:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •