• Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS Listener in the Web Container.

 
Keshav Deshpande
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to set up a Servlet as a JMS Message Listener under WAS 5.0. However, I get an IllegalStateException on the call to setMessageListener on the QueueReceiver.

Upon further research, I came upon an article, where it is stated that it is forbidden to make calls to setMessageListener in a servlet, according to the J2EE spec. WAS 5.0 dutifully throws an IllegalStateException when it encounters one of the forbidden calls.

All of that is well and good, but my question is:
Short of implementing an MDB, how does one implement a JMS listener in the web container. Thinking further, isnt this a major impediment in the way of "Asynchronous Web Services"?

Any and all thoughts welcome.
 
Keshav Deshpande
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologies, the version of WAS I am using is 5.1.1
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!