openejb:Resource/id as any resource. comp/env exists for war and ejbs.
Le 23 janv. 2015 23:17, "mauro2java2011" <[email protected]> a écrit
:

> go at page:
>
>
> http://tomee.apache.org/examples-trunk/simple-mdb-with-descriptor/README.html
>
> You can read fro example that the AnswerQueque is :
>
> <resource-env-ref>
>
> <resource-env-ref-name>java:comp/env/AnswerQueue</resource-env-ref-name>
>         <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
>         <mapped-name>AnswerQueue</mapped-name>
>         <injection-target>
>
>
> <injection-target-class>org.superbiz.mdbdesc.ChatBean</injection-target-class>
>           <injection-target-name>answerQueue</injection-target-name>
>         </injection-target>
>       </resource-env-ref>
> ----------------------
> so the
>
> @Resource(name = "AnswerQueue")
>     private Queue answerQueue;
>
> is :
> java:comp/env/AnswerQueue
>
> try it...
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/How-to-look-up-JMS-queue-from-embedded-OpenEJB-tp4673509p4673511.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Reply via email to