users@jax-rs-spec.java.net

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

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Sun, 9 Mar 2014 22:36:49 +0000

Hi Marek,


On 06/03/14 17:03, Marek Potociar wrote:
> Hi Sergey,
>
> SSE would be a minor feature, it can go into a "dot" release as such.
> WebSocket already has a separate Java EE API, so I do not think we would be doing anything on that front.
>
Fine with me, we will do it in CXF :-).

I share some of Bill's concerns, I don't really think SSE becomes
RESTful by the virtue of it binding itself to HTTP, but I'm keen to see
JAX-RS starting competing with other frameworks for building HTML5/JS
applications...


But I have a bit of a doubt about the current Jersey feature. I hope we
will have a proper discussion about the possible SSE integration and the
various alternatives for implementing it... Keeping the purity of JAX-RS
is important, binding to the non-typical flows should be done carefully
IMHO


Thanks, Sergey

> Marek
>
> On 05 Mar 2014, at 17:24, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
>
>> Right, it is exactly what it is called...
>> Sorry, got confused as we are working binding WebSockets to JAX-RS right now
>>
>> Marek: I honestly think it is for 3.0 - we need to review different mechanisms, SSE, WebSockets, etc...
>>
>> Thanks, Sergey
>>
>> On 05/03/14 15:51, Sergey Beryozkin wrote:
>>> Is it supposed to represent WebSocket at high level by any chance ? What
>>> is the underlying mechanism/transport it is meant to represent if not ?
>>>
>>> And it is not for 2.1, this is a completely new feature, 2.1 is supposed
>>> to be a maintenance/bug fixes release
>>>
>>> Sergey
>>> On 05/03/14 15:39, Marek Potociar wrote:
>>>> Hello experts,
>>>>
>>>> As you may know, the first steps towards starting work on Java EE 8 has
>>>> been made already. Among the most important ones was the Java EE 8
>>>> Community Survey. As the survey results
>>>> <https://java.net/downloads/javaee-spec/JavaEE8_Community_Survey_Results.pdf>
>>>> indicate,
>>>> there is a very strong support in Java EE community for coming with a
>>>> standard API for supporting Server-Sent Events in Java EE 8. Clearly,
>>>> one way or the other, SSE support will be added in Java EE 8 platform.
>>>>
>>>> There are multiple options how to achieve this and one of these options
>>>> being considered is to extend JAX-RS API to provide better support for
>>>> SSE. Before we make a final decision, I'd like to get your feedback on
>>>> whether or not you think that extending JAX-RS API with SSE support is a
>>>> good idea.
>>>>
>>>> To get the idea how such JAX-RS API support could look like, please
>>>> check Jersey User Guide section that describes how client and server SSE
>>>> support is currently implemented in Jersey 2.x:
>>>> https://jersey.java.net/documentation/latest/sse.html#overview
>>>>
>>>> I am looking forward to your feedback.
>>>>
>>>> Thank you,
>>>> Marek
>>>>
>>>>
>>>
>>>
>>
>>
>> --
>> Sergey Beryozkin
>>
>> Talend Community Coders
>> http://coders.talend.com/
>>
>> Blog: http://sberyozkin.blogspot.com
>