• Post Reply Bookmark Topic Watch Topic
  • New Topic

Listener question

 
eric mcentee
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just curious, can two separate listeners defined in the deployment descriptor implement the same interface? I can't think of why I'd want to do this, but can two separate classes wait for a ServletContextEvent for example? I guess this would be kind of like a topic that listeners could use.
 
Shishio San
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure you can.
Two different implementations of the interface.
 
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!