2015-09-02 15:30 GMT+02:00 msdocware <[email protected]>:

> I think I found my mistake. The Resource annotation is just a replacement
> for
> the web.xml reource-ref entry.
> I still need to obtain the instance from the initial context.
>
>
not really, at least not if set on a field. If it matches a tomee.xml
resource id then it will get injected in all managed beans without more
config.


> Now it works in Tomcat. I still need to test Websphere deployment, whether
> during deployment the resource mapping will be obtained from the annotation
> instead from the web.xml.
>
> Michael
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Using-JMS-with-Resource-annotation-tp4676042p4676060.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to