java - Which servlets are good member of pre initialization? -
by setting <load-on-startup>-1</load-on-startup> property in web.xml make servlet load whenever server starts up.
i know pre initialized servlets faster first request.
my question kind of servlets member setting. kind of functionality useful?
the load-on-startup controls when servlet's init() method called.
so, logically, if you've servlet init() method expensive , time consuming stuff, such parsing xml configuration files and/or populating application scoped data database, may idea on startup instead of on first request.
if don't have init() method, don't need care load-on-startup.
Comments
Post a Comment