in a J2EE application when does a listener get called?

Posted by josh on Stack Overflow See other posts from Stack Overflow or by josh
Published on 2010-04-29T23:20:02Z Indexed on 2010/04/29 23:27 UTC
Read the original article Hit count: 338

Filed under:
|
|

I have a J2EE app and it has a listener in web.xml.

Listener contains a method called contextInitialized

I want to know when does contextInitialized actually get called?

From my reading I understand that it gets called when deploying the application. Can there be situations/scenario's where it could be called after the application has been deployed? Say that I am in a Clustered GlassFish app server environment. Could it be called after the application has been deployed?

© Stack Overflow or respective owner

Related posts about j2ee

Related posts about java