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"?