aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Query on Listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Query on Listeners" Watch "Query on Listeners" New topic
Author

Query on Listeners

Rahul Jadaun
Ranch Hand

Joined: Oct 05, 2006
Posts: 36
Hi everybody,

One confusion. Which are the listeners that need not be configured in the DD. Is it only the HttpSessionBindingListener, as given in HFSJ, or is it both HttpSessionBindingListener and HttpSessionActivationListener, as given in one of the jDiscuss questions?

Regards,
Rahul.
Senthil Kumar
Ranch Hand

Joined: Mar 13, 2006
Posts: 264
No more confusions buddy.

Its HttpSessionBindingListener and HttpSessionActivationListener


when you really want something, all the universe always conspires in your favour.<br /> <br />SCJP1.5-77%<br />SCWCD-89%
Chethan Verma
Greenhorn

Joined: Oct 30, 2006
Posts: 18
Hi Rahul,

Both HttpSessionActivationListener and HttpSessionBindingListener are not needed to configure in DD.

Go though errata given for HFSJ.

[254] Standout titled "You do NOT configure session binding listeners in the DD!;
Standout reads:

"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."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query on Listeners