File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HttpActivationListener question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HttpActivationListener question" Watch "HttpActivationListener question" New topic

HttpActivationListener question

Sivaraman Govindarajan

Joined: Jun 07, 2007
Posts: 16
If an attribute or a regular class implements HttpActivationListener, should we need to declare in DD or not?

HFSJ says we need to. But an other mock exam I came across says we need NOT.

Which is true?

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

You need to.

Regards ...

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Mirko Bonasorte
Ranch Hand

Joined: May 14, 2007
Posts: 244
probably you are speaking about javax.servlet.http.HttpServletActivationListener.
From the APIs:

Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. A container that migrates session between VMs or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener.

So, I don't seem you need to specify it in the DD.
[ June 28, 2007: Message edited by: Mirko Bonasorte ]

SCJP<br />SCWCD 1.4 Upgrade (Remember: me stupid)<br />SCWCD 1.4<br /><a href="" target="_blank" rel="nofollow">SCBCD 5.0</a><br /><a href="" target="_blank" rel="nofollow">SCBCD 5.0 mock exam</a> <br /> <br />SCEA 5 Part1: Preparing...
Sivaraman Govindarajan

Joined: Jun 07, 2007
Posts: 16
My mistake, I meant HttpSessionActivationListener.
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Which listeners to declare in the deployment descriptor

[My Blog]
All roads lead to JavaRanch
Hanuma Deepak Muvvala
Ranch Hand

Joined: Nov 20, 2005
Posts: 158
Till now I know Only HttpSesionBindingListener not to be declared from the above link it is given that even HttpSessionActivationListener also. Is it real? How can I test with different JVMs?
I agree. Here's the link:
subject: HttpActivationListener question
It's not a secret anymore!