tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 49937] New: Problems with AsyncListener and resource injection
Date Thu, 16 Sep 2010 05:49:46 GMT

           Summary: Problems with AsyncListener and resource injection
           Product: Tomcat 7
           Version: trunk
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina

Created an attachment (id=26031)
 --> (
propose fix for a couple possible async listener problems

I asked about these on the dev list and am proposing some simple fixes in case
there's agreement that they are bugs.

1. AsyncListeners are subject to resource injection from annotations, so they
should be created using the instance manager. To get the instance manager to
the AyncContextImpl I added a getInstanceManager() method to the Context
interface.  Maybe there's a better way, this interface is currently not very
small or simple.

2. various application code can use one of the ServletContext.addListener
methods to tell the container to scan for annotations.  Just because tomcat
doesn't yet actually scan doesn't mean it should throw an exception if you try

cf servlet 3.0 spec section 15.5 page 179.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message