I am writing a servlet which needs to call another webservice as part of the request processing. Since the webservice might take a while to respond the request thead would be blocked, it would severely affect the throughput of my application. What is the best way to write such a servlet in JBoss. I have read there is an asyn HTTP framework in JBoss. Could someone please point me to the right documentation and if possible provide sample code and configuration. I am planning to deploy my application in JBoss 5.1.
Thanks in advance.