wood burning stoves 2.0*
The moose likes Servlets and the fly likes Could some one explain me the differences and benefits of Asynchronous processing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Could some one explain me the differences and benefits of Asynchronous processing" Watch "Could some one explain me the differences and benefits of Asynchronous processing" New topic
Author

Could some one explain me the differences and benefits of Asynchronous processing

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

Hi All,

After a very long time, I have resumed working on enterprise Java and going through the Servlet 3.0 specs. I have not done much of Asynchronous processing of the requests, but heard a lot about Ajax and how Ajax can be used to make Asynchronous requests. Since Servlet 3.0 also offers Asynchronous processing, I would like to understand whats the difference between Ajax way and Servlet 3.0 way of doing Asynchronous.

My understanding is, Ajax allows us to make Asynchronous client calls, which can be issued to Servlet 2.5 or prior (Asynchronous). Which is after making the client call, client will continue its further processing without being blocked.

Asynchronous servlet 3.0 allows to handle the client request (whether coming from Ajax or Synchronous request) in an Asynchronous way. That is request handling is not blocked. What would happen in that case? Would that request/response cycle end, while Asyn servlet handling the request in the background.

Any real time examples of both cases is appreciated.

Thanks


Regards
KumarRaja

Darlan Moraes
Greenhorn

Joined: Jan 08, 2013
Posts: 7
This link have a god explain:

https://blogs.oracle.com/enterprisetechtips/entry/asynchronous_support_in_servlet_3

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Could some one explain me the differences and benefits of Asynchronous processing
 
Similar Threads
Multiple response for a request
Resolving Rollback, Deadlock exception
help in asynchronous context
Notifying user using JSF after the Asynchronous session bean method completes
Servlet 3.0 Asynchronous Operations