• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Registering JMS Resources

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic