How to use load-on-startup servlet web.xml Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

load-on-startup is the rare tag on web.xml which is available inside servlet and can be used to control loading of servlet in web container. by using

Statistics

  • Total Hits - 27328

  • Total Votes - 158 votes

  • Vote Up - 81 votes

  • Vote Down - 77 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/J2EE

  • Submitted By - Javin Paul

  • Submitted on - 2011-12-18 13:52:46

Description

load-on-startup is the rare tag on web.xml which is available inside servlet and can be used to control loading of servlet in web container. by using load-on-startup you can simply tell J2EE container that load this servlet first and that one later you can also say that load this on deploy time loading means loaded in memory and instantiate and init() method called for a particular servlet by web container. lower the numeric value of load-on-startup , servlet will be loaded first. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements