Hi,

On Wednesday, December 3, 2014, Pavel Bucek <pavel.bucek@oracle.com> wrote:
Hi all,

I'm trying to figure out how to solve issue in JSR 356 - Java API for
WebSocket, related to CDI scope usable from WebSocket endpoints. Problem
is, that "standard" scopes do not apply, because there is no
@RequestScoped (http response is already sent), HttpSession does not
need to be created and the rest does not seem to be applicable, ...

I believe that CDI specification should define @UpgradeScoped, which
would cover usages of HttpUpgradeHandler from Servlet API. (Similarly as
it does for @RequestScoped, @SessionScoped, ... )

Wouldn't it be a better option to have WebSocket define that scope, using CDI to implement it? 

 

What are your thoughts about this?

Thanks and regards,
Pavel

_______________________________________________
cdi-dev mailing list
cdi-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/cdi-dev

Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.