[jboss-jira] [JBoss JIRA] Updated: (EJBTHREE-1647) @Resource injection of primitive types from JNDI
Brad Maxwell (JIRA)
jira-events at lists.jboss.org
Tue May 17 17:02:01 EDT 2011
[ https://issues.jboss.org/browse/EJBTHREE-1647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brad Maxwell updated EJBTHREE-1647:
-----------------------------------
Attachment: MappedName-jboss-metadata.patch
URL-patch-jboss-ejb3-core.patch
URL patch fixes @Resource URL issue.
MappedName patch fixes the mappedName having a jndi path in it, however I added two additional ifs to prevent 8 testcases from failing, need to fix the test cases and remove the extra if checks if this mappedName change should go in
> @Resource injection of primitive types from JNDI
> ------------------------------------------------
>
> Key: EJBTHREE-1647
> URL: https://issues.jboss.org/browse/EJBTHREE-1647
> Project: EJB 3.0
> Issue Type: Bug
> Components: injection
> Affects Versions: AS 4.2.1.GA
> Reporter: Dennis Reed
> Assignee: Andrew Rubinger
> Fix For: Unscheduled
>
> Attachments: EJBTHREE-1647_classloading.patch, MappedName-jboss-metadata.patch, URL-patch-jboss-ejb3-core.patch
>
>
> The following does not work to inject an arbitrary JNDI entry for primitive/primitive wrapper/String fields:
> @Resource( mappedName = "java:/blah/blah" )
> String myVar;
> In older versions, a "NYI" exception was thrown (then changed to a different exception before getting to the user).
> In newer versions, the literal value in mappedName is injected.
> For all other types, the JNDI entry injection works. For example, the following does inject that same String from JNDI:
> @Resource( mappedName = "java:/blah/blah" )
> Object myVar;
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list