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

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Thu Nov 25 10:45:00 EST 2010


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

Carlo de Wolf reassigned EJBTHREE-909:
--------------------------------------

    Assignee: jaikiran pai


> Injection of Simple Environment Entries Using Resource Annotation without name
> ------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-909
>                 URL: https://jira.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
>
> 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