my dog learned polymorphism*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HTTPSessionActivationListner doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HTTPSessionActivationListner doubt" Watch "HTTPSessionActivationListner doubt" New topic
Author

HTTPSessionActivationListner doubt

prashant k. gupta
Ranch Hand

Joined: May 15, 2008
Posts: 62
Is HTTPSessionActivationListner required to mention in DD? please explain.

Thanks
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
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.


JDBCSupport - An easy to use, light-weight JDBC framework -
prashant k. gupta
Ranch Hand

Joined: May 15, 2008
Posts: 62
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

Joined: Feb 23, 2009
Posts: 1183
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

Joined: Jun 11, 2007
Posts: 327
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

Joined: Nov 24, 2005
Posts: 14687
    
  16

Hi guys, we have a FAQ about this.


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTPSessionActivationListner doubt
 
Similar Threads
Chapter 6(Session Management) notes (HFSJ) for revision
about HttpSessionActivationListner
ServletListners
Clarify my doubt in listeners
HttpSession sharing between two apps