A Google search for "OpenJMS" turned up lots of examples including the sourceforge link
http://openjms.sourceforge.net/. Java Message Service seems to be a mature technology, and of course,
J2EE now has MessageBeans.
In combining JMS with
servlets, it seems to me that the biggest problem will be in coordinating the Threads and handling timeouts and other communication failure.
Bill