[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-909) Injection of Simple Environment Entries Using Resource Annotation without name

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Dec 16 05:36:18 EST 2010


     [ https://issues.jboss.org/browse/EJBTHREE-909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved EJBTHREE-909.
-----------------------------------

    Fix Version/s: depchain-1.0.0
       Resolution: Done


> Injection of Simple Environment Entries Using Resource Annotation without name
> ------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-909
>                 URL: https://issues.jboss.org/browse/EJBTHREE-909
>             Project: EJB 3.0
>          Issue Type: Bug
>    Affects Versions: EJB 3.0 RC9 - Patch 1
>            Reporter: Roland Räz
>            Assignee: jaikiran pai
>             Fix For: depchain-1.0.0
>
>
> The name of the @Resource annotations should default to the property or method name. The following simple environment injections are not working as expected:
> @Resource
> String stringValue;
> Long longValue = Long.valueOf(1);
> @Resource
> void setLongValue(Long longValue) {
>   this.longValue = longValue;
> }
> Workaround:
> @Resource(name = "stringValue")
> String stringValue = "hi";
> Long longValue = Long.valueOf(1);
> @Resource(name = "longValue")
> public void setIntValue(Long longValue) {
>   this.longValue = longValue;
> }

-- 
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