File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Listener question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Listener question" Watch "Listener question" New topic

Listener question

eric mcentee
Ranch Hand

Joined: May 02, 2001
Posts: 66
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

Joined: Aug 29, 2002
Posts: 223
Sure you can.
Two different implementations of the interface.

Whatever doesn't kill us ...<br />Is probably circling back for another try.<br />SCJP 1.4
I agree. Here's the link:
subject: Listener question
It's not a secret anymore!