Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to keep thread running in the tomvat server  RSS feed

 
harsha uduap
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,

I have requirement that thread should be running in the tomcat server. the thread should start when the server starts.

The thread will communicate with the database. I am doing leave management project. There is a requirement that when leave request is more than 3 day old mail should trigger to the respective person nothing but auto approval of leave.

Please help on this.

regards,
harsha
 
Glen Divers
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harsha uduap wrote:

I have requirement that thread should be running in the tomcat server. the thread should start when the server starts.



You need to take a look at the ServletContextListener.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!