On 12/09/2011 10:21 AM, Daniel Kulp wrote:
On Friday, December 09, 2011 10:13:02 AM ramesh wrote:
On 12/09/2011 07:49 AM, Sergey Beryozkin wrote:
Thanks Sergey for the reply. While researching I found that it is not a
good idea to long poll an endpoint directly as each request would keep
the endpoint occupied instead of releasing them after each request. We
are looking at a large number of simultaneous request on this endpoint,
which if not properly handled could effect the entire service.
Tomcat 7's NIO feature or Apache Synapse seem to be the possible
solution, however I am still looking to see how it all would work together.
Any clue on this front would be appreciated.
The Continuation stuff that Sergey mentioned pretty much does the same thing
as long as the underlying Servlet engine supports it. If you use an
embedded Jetty server like the tests do, we know it works pretty well. The
connections can stay open and not really consume any threads or services or
anything. There is support for continuations over Servlet3, but I'm not
sure how well it's been tested at all.
Dan
regards,
Ramesh
Thanks again.
Sorry I was not very clear when Sergey recommended the solution first.
Just read an old post by Sergey
<http://sberyozkin.blogspot.com/2008/12/continuations-in-cxf.html> on
continuations and Jetty continuations
<http://docs.codehaus.org/display/JETTY/Continuations>document. I think
that was the kind of solution I was looking for.
Jetty continuations doc has a note that "Continuations will be replaced
by standard Servlet-3.0 suspendable requests" so that is something to
look at as well.
Thanks for pointing me to such a useful resource.
regards,
Ramesh