users@websocket-spec.java.net

[jsr356-users] Java EE 8 MR claryfing CDI integration

From: Guillermo González de Agüero <z06.guillermo_at_gmail.com>
Date: Fri, 14 Oct 2016 10:07:29 +0200

Hi,

A common problem when using Java EE 7 WebSocket API is that is doesn't
define a CDI scope. That makes working with CDI very difficult in practice.

Some insight:
- https://java.net/jira/browse/JMS_SPEC-121
- https://java.net/jira/browse/WEBSOCKET_SPEC-196-
- https://issues.jboss.org/browse/CDI-370
- https://abhirockzz.wordpress.com/2015/02/10/integrating-cdi-
and-websockets/
- https://blogs.oracle.com/brunoborges/entry/integrating_webso
ckets_and_jms_with

From what I understand, an endpoint could have two scopes (request, and
application), and would have some more active scopes (request, ¿session?,
transaction, application).

It was discussed wether this was a WebSocket or CDI concern, but the
conclussion was the clarification has to be done on the WS side.

My question is: do we have any chance for a MR in Java EE 8 clarifying this
integration?


Regards,

Guillermo González de Agüero