On Mar 21, 2013, at 9:54 AM, Christopher Schultz wrote:

> Nick,
> 
> On 3/21/13 10:17 AM, Nicholas Williams wrote:
>> I know that WebSockets will be a part of the Java EE 7 specification
>> for full application servers. But will web containers also be required
>> to implement this? Or will it be optional, and Tomcat is just being
>> nice? :-)
> 
> Do you mean "will the J2EE 7 Web Profile include Websocket?"

No, I meant web container, which I could mention is synonymous with servlet 
container [1]. Tomcat does not implement Web Profile. It is a web 
container/servlet container. The primary reason I'm wondering if web containers 
will be required to implement WebSockets is due to the integration with the new 
HttpServletRequest#upgrade(). Obviously this was added to facilitate 
WebSockets, but that doesn't mean that WebSockets will be required for web 
containers.

> 
> I think it would be foolish for J2EE 7 Web Profile /not/ to include
> Websocket, since it's really distinct from all other kinds of
> J2EE-related stuff and squarely falls into the web-related pool of slop.

However, you remind me of Web Profile, so I would /also/ like to know if Web 
Profile will require WebSockets. I agree with you that it would be foolish not 
to.

> 
> As for Tomcat's pursuit of Websocket: our community has demanded it, so
> we are providing it, regardless of any standards body. Tomcat has
> cherry-picked various J2EE standards to implement and AFAICT isn't
> required to do anything other than make its users happy. Obviously,
> making users happy means properly supporting the Servlet and JSP specs
> which of course requires the EL spec to be implemented as well. At this
> point, including Websocket is another of those things we must do to keep
> our users happy.

Agreed. :-)

> 
> There is a line, though, and I'm not sure if everyone exactly agrees
> where that is. Clearly, Tomcat will never implement EJB. It's been great
> that TomEE has stepped-in and created a product that bundles existing
> J2EE services that a lot of folks want/need but don't want to bother
> with the heft of WebSphere, JBoss, etc.
> 
> -chris
> 

[1] http://en.wikipedia.org/wiki/Web_container
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to