You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2007/01/19 06:44:29 UTC

[jira] Created: (CXF-370) ResourceInjector passes incorrect resource names

ResourceInjector passes incorrect resource names
------------------------------------------------

                 Key: CXF-370
                 URL: https://issues.apache.org/jira/browse/CXF-370
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0-RC
            Reporter: Jarek Gawor


The ResourceInjector passes incorrect resource names to ResourceResolvers. For example, for the given annotation:

@Resource
private DataSource myDB;

resolveResource() is called with name = myDB and type = javax.sql.DataSource. However, that is incorrect as according to the 'Common Annotations for the Java™ Platform™' spec:

"In the example above the effective name is com.example.class/myDB and the effective type is javax.sql.DataSource.class."

If the name is not specified, the generated name should be qualified with the class name of the instance.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Resolved: (CXF-370) ResourceInjector passes incorrect resource names

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-370.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-RC

> ResourceInjector passes incorrect resource names
> ------------------------------------------------
>
>                 Key: CXF-370
>                 URL: https://issues.apache.org/jira/browse/CXF-370
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Jarek Gawor
>         Assigned To: Daniel Kulp
>             Fix For: 2.0-RC
>
>
> The ResourceInjector passes incorrect resource names to ResourceResolvers. For example, for the given annotation:
> @Resource
> private DataSource myDB;
> resolveResource() is called with name = myDB and type = javax.sql.DataSource. However, that is incorrect as according to the 'Common Annotations for the Java™ Platform™' spec:
> "In the example above the effective name is com.example.class/myDB and the effective type is javax.sql.DataSource.class."
> If the name is not specified, the generated name should be qualified with the class name of the instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-370) ResourceInjector passes incorrect resource names

Posted by "Adi Sakala (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adi Sakala updated CXF-370:
---------------------------

    Assignee: Daniel Kulp

> ResourceInjector passes incorrect resource names
> ------------------------------------------------
>
>                 Key: CXF-370
>                 URL: https://issues.apache.org/jira/browse/CXF-370
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>            Reporter: Jarek Gawor
>         Assigned To: Daniel Kulp
>
> The ResourceInjector passes incorrect resource names to ResourceResolvers. For example, for the given annotation:
> @Resource
> private DataSource myDB;
> resolveResource() is called with name = myDB and type = javax.sql.DataSource. However, that is incorrect as according to the 'Common Annotations for the Java™ Platform™' spec:
> "In the example above the effective name is com.example.class/myDB and the effective type is javax.sql.DataSource.class."
> If the name is not specified, the generated name should be qualified with the class name of the instance.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.