[cdi-dev] New Servlet related scope - @UpgradeScoped (?)
arjan.tijms at gmail.com
Wed Dec 3 13:44:35 EST 2014
On Wednesday, December 3, 2014, Pavel Bucek <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?
> What are your thoughts about this?
> Thanks and regards,
> cdi-dev mailing list
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cdi-dev