Bug 49892 - Wrong JNDI Name for Method Resource Injections
Wrong JNDI Name for Method Resource Injections
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Catalina
trunk
PC Linux
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-09-07 10:44 UTC by Gurkan Erdogdu
Modified: 2010-09-08 15:47 UTC (History)
0 users



Attachments
Patch that solves method based resource injection problem (1.08 KB, patch)
2010-09-07 10:46 UTC, Gurkan Erdogdu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.