spring java web service, asynchronous -


can asynchronous web service achieved java spring-ws framework how it's explained in here

basically when client sends request server first time, web service on server callback the client whenever has information based on request. means server may reply more once based on first initial request client.

suggested approach per experience:

asynchronous web services implemented in following model: client submit request -> server returns 202 accepted response(polling/job url in header) -> client keep polling job url -> server returns 200 ok job url along job response in body.

you may need define few response body job in progress. when client polls server , server still processing request, body should contain in progress message in predefined form client. if server finished processing, desired response should available in body.

hope helps!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -