This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Registering JMS Resources

 
Vincent Cas
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic