File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpActivationListener question

 
Sivaraman Govindarajan
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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?

Thanks.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

You need to.

Regards ...
 
Mirko Bonasorte
Ranch Hand
Posts: 244
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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 ]
 
Sivaraman Govindarajan
Greenhorn
Posts: 16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My mistake, I meant HttpSessionActivationListener.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which listeners to declare in the deployment descriptor
 
Hanuma Deepak Muvvala
Ranch Hand
Posts: 158
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic