https://issues.apache.org/bugzilla/show_bug.cgi?id=49937
--- Comment #3 from david jencks <djen...@apache.org> 2010-10-03 17:00:02 EDT --- Thanks for fixing the listener creation to use instance manager. As to whether you can call addListener with an async listener, I don't think its very clear. In Section 15.5: AsyncListener is included in the list of interfaces for which << Annotations must be supported on the following container managed classes that implement the following interfaces and are declared in the web application deployment descriptor or using the annotations defined in Section 8.1, “Annotations and pluggability” on page 8-61 or added programmatically. >> Note that this indicates that AsyncListeners can be annotated with @WebListener and that the ServletContext.addListener methods can be called for an AsyncListener. Furthermore the section makes clear that resource injection must be supported for AsyncListeners defined in web.xml, with a @WebListener annotation, or added programatically, and that AsyncListeners can be managed beans. Section 4.4.3 agrees with the javadoc you cite. I think the spec contradicts itself here. I plan to ask for clarification from the e.g. by filing a tck challenge. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org