This content has been marked as final.
Show 1 reply
-
1. Re: how to lookup Queue in SessionBean
jing58 Jan 14, 2005 5:07 PM (in response to jing58)I added the code in ejb-jar.xml
<resource-ref>
<res-ref-name>jms/PointToPoint</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<resource-env-ref>
<resource-env-ref-name>queue/testQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
Object obj=ctx.lookup("queue/testQueue")
Still failed to lookup Queue.