users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: Adding SSE support to JAX-RS 2.1?

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 06 Mar 2014 10:21:29 -0500

On 3/6/2014 9:18 AM, Santiago Pericas-Geertsen wrote:
>
> On Mar 6, 2014, at 8:59 AM, Bill Burke <bburke_at_redhat.com> wrote:
>
>>
>>
>> On 3/6/2014 8:46 AM, Santiago Pericas-Geertsen wrote:
>>>
>>> On Mar 5, 2014, at 3:07 PM, Bill Burke <bburke_at_redhat.com> wrote:
>>>
>>>> Honestly, I don't see why we should have support for this in JAX-RS. Let the servlet spec handle it.
>>>
>>> Would you mind elaborating on this? I don't know of many developers that would prefer to use servlets over JAX-RS for anything, including new features like SSE.
>>>
>>
>> So, JAX-RS is no longer a REST framework, but now a replacement for servlets?
>
> No, but REST frameworks are becoming increasingly popular with thin-server architectures and browser clients. As a developer, it would feel awkward to move from JAX-RS to Servlets just to implement SSE for those clients.
>

What would be awkward is having support for a non-HTTP session-based
protocol inside of a REST framework.

>> Are you going to add WebSocket support?
>
> No, WebSocket is completely different and it's already in EE 7 (JSR 356).
>

Not, its not any different. Both involve sending messages over a
session-based protocol.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com