Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting a web application

 
ravinderSingh singh
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way my web application can be notified of when it is started, so that it can initialise itself?

Maybe there's some kind of listener interface?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64967
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, javax.servlet.ServletContextListener.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic