wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Registering JMS Resources Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Registering JMS Resources" Watch "Registering JMS Resources" New topic
Author

Registering JMS Resources

Vincent Cas
Greenhorn

Joined: Mar 09, 2008
Posts: 19
Hi,

Im using a servlet MessageServlet that is supposed to send JMS messages to a Queue i've created on the Sun Application Server 9.1

When I attempt to use the servlet I get the following error:

javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/FeedbackQueue

root cause

javax.naming.NameNotFoundException: No object bound to name java:comp/env/jms/FeedbackQueue

I gather that I have to put something in web.xml and sun-web.xml to bind the object to the jndi name but I can't figure out what to put.

Thanks for your time,
Vincent Cas
Greenhorn

Joined: Mar 09, 2008
Posts: 19
Hi,

Just thought i should mention that I think I've solved this, by adding

<resource-ref>
<res-ref-name>jms/FeedbackQueue</res-ref-name>
<res-type>javax.jms.Queue</res-type>
<res-auth>Container</res-auth>
</resource-ref>

to web.xml and

<resource-ref>
<res-ref-name>jms/FeedbackQueue</res-ref-name>
<jndi-name>jms/FeedbackQueue</jndi-name>
</resource-ref>

Althoguh I dont understand the res-auth container or servlet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Registering JMS Resources
 
Similar Threads
provider_url for datasource
j2ee newbie question about context and lookup
java:comp is not bound in this Context
Naming.NotFoundException
DataSource implementation