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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Session Listener confusion" Watch "Session Listener confusion" New topic
Author

Session Listener confusion

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
Hey,

HttpSessionBindingListener and HttpSessionActivationListener is for Attribute class itself right.

We dont need to declare those two Listeners in DD right? but in HFSJ said in page 256 they said HttpSessionActivationListener should declare in DD which is a mistake right.

Also it says HttpSessionActivationListener (in page 264) usually implement by an attribute class and some other class? what is this some other class? i guess its ususally implement only in attribute class right? is it an HFSJ mistake too?

Thank You.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

We dont need to declare those two Listeners in DD right?

Right. Details are explained here.

what is this some other class?

I have no idea. It can be implemented by any class, but I think it only makes sense that attribute classes implement it.


[My Blog]
All roads lead to JavaRanch
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
I have no idea. It can be implemented by any class, but I think it only makes sense that attribute classes implement it


its like they said,

HttpSessionListener-----------------------------usually implement by Some other class
HttpSessionActivationListener------------------usually implement by An attribute class and Some other class
HttpSessionBindingListener---------------------usually implement by An attribute class
HttpSessionAttributeListener--------------------usually implement by Some other class
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Only attributes bound to a session will be notified. I can't see anything other than that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Listener confusion