• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Question on LIsteners

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And read this post too if you still don't agree

https://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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Guys all of you, you are correct. Thanks a lot for correcting me.
I believe you now.
 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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:

https://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.
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic