I am not at all able to understand the difference between HttpSessionAttributeListener and HttpSessionBindingListener. Pls can someone help me with this.
Hi Sudd
HttpSessionAttributeListener : configured in web.xml
HttpSessionBindingListener : not configured in web.xml
HttpSessionAttributeListener : This listener interface can be implemented in order to get notifications of changes to the attribute lists of sessions within this web application.
HttpSessionBindingListener : Object gets notified when it gets bound or unbound
all JVMs in a distributed environment have their own copy of the ServletContexts and HttpSessions.
Ans : Yes
see sharing an attribuute in disturbted will not work for
servlet context OR session b'coz they are local to jvm for sharing an attributes better u need to make use of rdbms Or any external source.
see sharing a parameter u can do it by configuring in web.xml b'xoz parameter u defined in context-param that is available to all the servlet context but sharing is not the right
word i feel
correct me if i am missing something
Rishi