how to bind JMS connection factory/queue in web.xml?
I'm trying to define a JMS connection factory and a message queue for my web component. I tried something like this in the web.xml:
Default JMS Connection Factory
Default JMS Queue Destination
I also have tried to define the repective elements in "sun-web.xml" as well. That is, both "web.xml" and "sun-web.xml" are defined.
My web app log shows this error:
"javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/jwangConnectionFactory"
The connection factory and queue were defined via the admin web interface.
Injection with annotation @Resource(mappedName="jms/jwangConnectionFactory") into one of the EJB was working fine.
The ejb ref and jdbc datasource defined in the same web.xml were working fine.
1, which element it should use to define a JMS resource? "resource-ref" or "resource-env-ref"(not working either) or something else?
2, why it's not working in my example.
Thanks for your help