java - Javaee asynchronous request : Dispatching even after response closed -


i'm reading oscwcd books charles lyon on section asynchoronous request. says in asynchronous cycle, 1 can dispatch when response has been committed. don't understand why so? insight great!

the general approach asynchronous approach client open new channel receive asynchronous response , provide handle of channel server. asynchronous response not sent on intial client request/response channel, rather sent on different channel, remains active till client not receive asynchronous response.

if client not able provide channel server send asynchronous response, approach use polling. in case, server part of intial request response, provide polling url. client can poll periodicall, , when server has response ready, return response. when server not have response, should return meaningful in-progress message.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -