users@jax-rs-spec.java.net

[jax-rs-spec users] Re: Welcome to the JAX-RS 2.1 EG

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Thu, 11 Dec 2014 11:07:09 -0500

On Dec 10, 2014, at 5:54 PM, Markus KARG <markus_at_headcrashing.eu> wrote:

>>> * The list names SSE but not WebSockets. Is this to be understood as
> really
>>> SSE only, hence definitively no WebSocket support?
>> There's another JSR for WS.
>
> What if somebody wants to write a JAX-RS application which shall open a
> WebSocket as a reaction to an HTTP method, and which has to forward events
> on that WebSocket received by JAX-RS Client API?

 I'm not sure I understand the JAX-RS Client API part. Is the JAX-RS application a WS client in this UC? If so, it can simply use a WS @ClientEndpoint.

> If we allow SSE, then
> people will ask how to do something like that with WebSocket and need a
> one-stop blueprint shop.

 We can certainly say something about WS, and why SSE is easily handled as an extension of JAX-RS while WS requires its own API.

-- Santiago