On 18/03/2013 00:22, Nick Williams wrote:
> Martin,
> 
> Don't believe we've spoken before. Good to meet you.
> 
> I'm working on a book on Servlet 3.1 + WebSockets + Spring Framework
> 4 + Hibernate + Spring Security. My interest is purely the new Java
> WebSockets API. The existing Comet implementation in Tomcat 7.0 will
> be deprecated in 7.0 once the official API is complete and ported,
> and it will not be present in Tomcat 8.0.

The link Martin posted has no relation to the WebSocket implementation
in Tomcat 7.

If you build on top of Comet each WebSocket connection automatically
gets a lot of unwanted baggage (requests/responses) that potentially
hampers scalability. The Tomcat 7 implementation is built on top of
Tomcat's low-level I/O and is relatively baggage free.

In Tomcat 8 it is built on top of the Servlet 3.1 HTTP Upgrade but the
Servlet[Input|Output]Stream objects used are not the same ones you'd get
if you requested them from an HttpServlet[Request|Response]. Again, for
scalability, the Servlet[Input|Output]Stream implementations used by
HTTP upgrade are built on top of Tomcat's low-level I/O.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to