[ 
https://issues.apache.org/jira/browse/GERONIMO-3548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Viet Hung Nguyen updated GERONIMO-3548:
---------------------------------------

    Attachment: mrc-server-ear-1.0-SNAPSHOT.ear

This is a sample app to demonstrate the problem. The source can be checked out 
of 

svn co https://svn.apache.org/repos/asf/geronimo/sandbox/monitoring

> unable to inject DataSource into EJB using @Resource
> ----------------------------------------------------
>
>                 Key: GERONIMO-3548
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3548
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: OpenEJB
>    Affects Versions: 2.1
>         Environment: windows
>            Reporter: Viet Hung Nguyen
>         Attachments: mrc-server-ear-1.0-SNAPSHOT.ear
>
>
> I have a DataSource that I am deploying along with my EAR. I tried to inject 
> this DataSource into my EJB code with the following snippet:
> @Resource(name="ActiveDS") private DataSource ds;
> However, I get the following warning:
> [INFO] 17:29:18,953 WARN  [ResourceRefBuilder] Failed to build reference to 
> resource reference [] defined in plan file, reason - corresponding entry in 
> deployment descriptor missing.
> The data source is not injected properly. I did a simple check to see if my 
> 'ds' was null, and it was.

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

Reply via email to