This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order Of Listeners

 
senthil rajan
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frnds,

In which order the listeners will be executed?
Its based on the order in web.xml or will it follow any pattern match like servlets? If so what kind of pattern?

Can anybody give some idea on this??

Thanks,
Senthil.
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which order the listeners will be executed?
Its based on the order in web.xml or will it follow any pattern match like servlets? If so what kind of pattern


its based on the order of web.xml .The order of listenrs in web.xml form a filter chain.Lets say u have declared three listeners A,B,C in this order
so there will be kind of filterchain

A->B->C known to FilterChain interface.
So if ur request/response qualifies for A it will proccesed down the chain in the chains order..

I hope this is clear .Correct me if I am wrong..

regards
-santosh
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The Listener are executed when the particular event is triggered. In case there are more than one Listeners are definded of the same type, they follow the order as defined in the web.xml.

Thanks
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi senthil,
I m sorry as i did a seroius mistake ,when i read ur question i got Filters in my mind dont know why?
So my answer is valid if ur was about Filters order ,i hope u get what i want to say.. Sorry for this mistake..

regards
-santsoh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic