Hi

is your bean managed by tomee? is it a cdi bean, an ejb?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-01-11 13:28 GMT+01:00 essex2014 <[email protected]>:

> Hi,
>
> I am trying to inject datasource into my class using @Resource annotation.
> I
> defined the resource in tomee.xml and added the reference in both web.xml
> and resources.xml. In the class when I try to access the data source I get
> null. The same code works when I try in a servlet. Any idea if I need to
> add
> any other config to get this working ?
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Resource-not-working-in-tomee-1-7-4-tp4680866.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to