Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpSessionActionListener and DD

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a questiona that "HttpSessionActivationListerner" is "NOT" declared in DD like HttpSessionBindingListener (i.e jdiscuss mocks).

But HFSJ says that this class is session related class and MUST be declared in DD.

What is the correct?

Tks.
 
Gab Buda
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSessionActivationListener and HttpSessionBindingListener are not configured in the DD.

You're right for HFSJ, but there's an errata:
http://www.oreilly.com/catalog/headservletsjsp/errata/headservletsjsp.confirmed

Gabb
[ April 02, 2006: Message edited by: gabb buda ]
 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, ok "Gabb", that�s very important, tks.


"You do NOT configure session binding listeners in the DD! ... But this is NOT true for the other session related listeners on the previous page. HttpSessionListener, HttpSessionAttributeListener, and HttpSessionActivationListener must be registered in the DD, since they're related to the session itself, rather than an individual
attribute placed in the session."

Should read:

""You do NOT configure session binding listeners OR SESSION ACTIVATION LISTENERS in the DD! ... But this is NOT true for the other session related listeners on the previous page. HttpSessionListener and HttpSessionAttributeListener must be registered in the DD, since they're related to the session itself, rather than an individual attribute placed in the session."
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

HttpSessionActivationListener and HttpSessionBindingListers are implemented by the attributes added to the session scope. And these listeners are activated when the attribute of these type is bounded/unbounded to session and session is migrated. The attribute class is notified.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic