[cdi-dev] New Servlet related scope - @UpgradeScoped (?)

Martin Kouba mkouba at redhat.com
Thu Dec 4 03:00:53 EST 2014


Dne 3.12.2014 v 19:44 arjan tijms napsal(a):
> Hi,
>
> On Wednesday, December 3, 2014, Pavel Bucek <pavel.bucek at oracle.com
> <mailto:pavel.bucek at 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?

+1
It's the same case as JSF @FlowScoped.

>
>
>     What are your thoughts about this?
>
>     Thanks and regards,
>     Pavel
>
>     _______________________________________________
>     cdi-dev mailing list
>     cdi-dev at lists.jboss.org <javascript:;>
>     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.
>
>
>
> _______________________________________________
> cdi-dev mailing list
> cdi-dev at 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.
>


More information about the cdi-dev mailing list