• Post Reply Bookmark Topic Watch Topic
  • New Topic

Listener Class Instance

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question is from SCWCD@whiz: listener class instance is scoped to one per DD declaration per VM.
I think that there are multiple per DD declaration per VM, but the correct answer is one per DD declaration per VM. Why?
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
depends on how you interpret "DD declaration". i interpret it as an occurrence of by that reasoning, SCWCD@whiz is correct. the server instantiates one listener instance per DD declaration per VM.
------------------
Miftah Khan
- Sun Certified Programmer for the Java� 2 Platform
- Sun Certified Web Component Developer for the Java� 2 Platform, Enterprise Edition
[This message has been edited by Miftah Khan (edited October 05, 2001).]
 
Adithya Rayaprolu
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can confirm this by looking at the section SRV.10.6 in the Servlet 2.3 specification.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!