java - in a J2EE application when does a listener get called? -


i have j2ee app , has listener in web.xml.

listener contains method called contextinitialized

i want know when contextinitialized called?

from reading understand gets called when deploying application. can there situations/scenario's called after application has been deployed? in clustered glassfish app server environment. called after application has been deployed?

it's called once when application first deployed. shouldn't called again if application stays deployed.

however, application may go through undeploy/deploy cycle while server running. example, can set application redeployed when file changed in directory.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -