Skip to content

Listeners

July 29, 2008

No need to declare the Binding and Activation Listener in the – web.xml

Sequence of calling:

1.ServletContextListener
2.RequestListener

3.RequestAttributeListener–
4.ServletContextAttributeListener–

3 and 4 are not necessarily in the above mentioned order.might change as which order you set the attributes.

5.HttpSessionActivationListener – when the session migrates
6.HttpSessionListener – when the session is created/invalidated
7.HttpSessionAttributeListener
8.HttpSessionBindingListener
HttpSessionBindingListener’s valuebound() is called before HttpSessionAttributeListener’s attributeAdded().Likewise unbound() before attributeReplaced() or attributeRemoved.

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: