Bug 49892

Summary: Wrong JNDI Name for Method Resource Injections
Product: Tomcat 7 Reporter: Gurkan Erdogdu <gurkanerdogdu>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Patch that solves method based resource injection problem

Description Gurkan Erdogdu 2010-09-07 10:44:49 UTC
Method based JNDI env. injections not worked correctly. Patch is attached. See Java EE 6 specification section, EE. 5.2.5 Annotations and Injections. Patch is provided that solves problem.
Comment 1 Gurkan Erdogdu 2010-09-07 10:46:36 UTC
Created attachment 25998 [details]
Patch that solves method based resource injection problem
Comment 2 Mark Thomas 2010-09-08 15:47:18 UTC
Thanks for the patch. I have applied it to trunk and it will be in 7.0.3 onwards.

I also added to test for method name length to ensure correct operation.