Skip to content Skip to sidebar Skip to footer

Is There A Way To Perform Fire-and-forget Ajax Request?

I'm working on a web app. When the program switches channel, it sends a 'close' AJAX request to the server with the old channel. As the server responses, the app just sends an 'ope

Solution 1:

You can use servlet 3.0 Async feature. You can commit the response immediately for your close request and start new thread to do further server processing. You can refer below link for more information on the same. http://www.javaworld.com/article/2077995/java-concurrency/asynchronous-processing-support-in-servlet-3-0.html


Post a Comment for "Is There A Way To Perform Fire-and-forget Ajax Request?"