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 14:07:26 -0500

On 3/6/2014 11:25 AM, Santiago Pericas-Geertsen wrote:
>
> On Mar 6, 2014, at 10:56 AM, Bill Burke <bburke_at_redhat.com> wrote:
>
>>
>>>> What would be awkward is having support for a non-HTTP session-based
>>>> protocol inside of a REST framework.
>>>
>>> I would agree. Except SSE _is designed_ to work on HTTP and it is how
>>> HTML5 clients use it. I think you're mixing up SSE with WebSockets.
>>> Please take a look at the specification:
>>>
>>> http://www.w3.org/TR/eventsource/
>>>
>>
>> I did look at the spec. It is session based. Its standardized Comet.
>
> Yes, but I don't get your point about sessions. Is streaming a resource using the standard JAX-RS API session based?
>

REST is stateless == no sessions

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