java - How to use Servlet 3 @WebServlet & async with Spring MVC 3? -


I want to integrate servlet 3.0 async support with spring MVC. Like something:

  @RequestMapping @WebServlet (name = "myServlet", asyncSupported = true) public string getMessage (string user name) {......}  

Is this possible?

Not so fast, it is not easy to implement good long voting method. Works from, but there is a serious issue of "Thread Starvation"

Every long voting will use a thread, if you have 1000 concurrent users then you will need a long service of upto 1000 votes. (Most of the time the server side status updates on the client browser Tetan)

There is a continuous pattern in JT6, which intelligently releases the thread of the longest voting request to be used by the actual application logic.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -