• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on LIsteners

 
Jay Tse
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it true that both HTTPSessionBindingListener and HTTPSession ActivationListner
cannot be configured in web.xml?

I thought only HTTPSessionBindingListener does not need to be in web.xml.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSessionActivationListener doesn't need it either.
It is used when an object needs to know when it will be activated/passivated.
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I Strongly Believe ONLY HTTPSessionBindingListener does not need to be put in web.xml REST all you have to.
Some books and tests depict it wrong.
Mayank
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I Strongly Believe ONLY HTTPSessionBindingListener does not need to be put in web.xml REST all you have to.


NO. Its wrong perception.

HttpSessionActivationListener doesn't need to be configured in web.xml.
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Search for word "HttpSessionActivationListener" in
http://java.sun.com/developer/technicalArticles/Servlets/servletapi2.3/
and check your self.

Tell me my perception is correct or not.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tell me my perception is correct or not.


NOT.

If you are preparing for the SCWCD exam then start using Servlet 2.4 Spec.

Write some code and then let me know whether it has to be declared in DD or not. All the Best
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishnu,
The api of 2.4 i got does not specify anything about listners.
plz provide the url to access and resolve the matter.

thanks & Regards,
Mayank
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go to this link and scroll down to the end of the page.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And read this post too if you still don't agree

http://www.coderanch.com/t/170522/java-Web-Component-SCWCD/certification/listeners-don-register-DD
[ January 27, 2006: Message edited by: Satou kurinosuke ]
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satou kurinosuke,
Still the link does not show any api or solid proof that the HFS has done a error, While I have given the api of servlet 2.3, 2.4 does not speak abt it.
Please provide me a solid proof of concept.
thanks to you all guys.
 
Jay Tse
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Satou kurinosuke and Vishnu Prakash for the answers.

I also checked the errata for HFSJ and it says that the "bang" box on page 261 is incorrect. So you guys were correct. Thank you again.
 
mayank jamindar
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Guys all of you, you are correct. Thanks a lot for correcting me.
I believe you now.
 
Sue Pillai
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, I still do not know whether to completely trust the errata, because I think the errata needs an errata Check my other posting:

http://www.coderanch.com/t/171338/java-Web-Component-SCWCD/certification/EL-access-operators-HF

I think as Vishnu said, you have a doubt - you better write code and make sure what the answer is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic