This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Similar Threads
Listeners not configured in DD
JTextField[ ] - index of event source?
Is it possible to bind a component with two other components
Firing two actions
Adding extra listeners