• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTTPSessionActivationListner doubt

 
prashant k. gupta
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is HTTPSessionActivationListner required to mention in DD? please explain.

Thanks
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No ... same applies for HttpSessionBindingListener.

Behind the scenes something like this happens:

1. It is iterated through all session attributes
2. A if(attribute instanceof HttpSessionActivationListener) is performed.
 
prashant k. gupta
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sebastian Janisch wrote:No ... same applies for HttpSessionBindingListener.

Behind the scenes something like this happens:

1. It is iterated through all session attributes
2. A if(attribute instanceof HttpSessionActivationListener) is performed.


Hi Sebastian ,

i found this in HFSJ 1.4 that except HttpSessionBindingListener, all listners need to be configured in DD. was there any changes or errata on that?
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check This URL: http://edocs.bea.com/wls/docs61/webapp/app_events.html#176479

It states:
Note: The Servlet 2.3 specification also contains the javax.servlet.http.HttpSessionBindingListener and the javax.servlet.http.HttpSessionActivationListener interfaces. These interfaces are implemented by objects that are stored as session attributes and do not require registration of an event listener in web.xml. For more information, see the Javadocs for these interfaces.
 
Harshana Dias
Ranch Hand
Posts: 347
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
was there any changes or errata on that?


i guess yes. but not sure its been confirmedby authors..
any way check this
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, we have a FAQ about this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic