Hi,<br><br>On Wednesday, December 3, 2014, Pavel Bucek &lt;<a href="mailto:pavel.bucek@oracle.com">pavel.bucek@oracle.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I&#39;m trying to figure out how to solve issue in JSR 356 - Java API for<br>
WebSocket, related to CDI scope usable from WebSocket endpoints. Problem<br>
is, that &quot;standard&quot; scopes do not apply, because there is no<br>
@RequestScoped (http response is already sent), HttpSession does not<br>
need to be created and the rest does not seem to be applicable, ...<br>
<br>
I believe that CDI specification should define @UpgradeScoped, which<br>
would cover usages of HttpUpgradeHandler from Servlet API. (Similarly as<br>
it does for @RequestScoped, @SessionScoped, ... )</blockquote><div><br></div>Wouldn&#39;t it be a better option to have WebSocket define that scope, using CDI to implement it? <br><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What are your thoughts about this?<br>
<br>
Thanks and regards,<br>
Pavel<br>
<br>
_______________________________________________<br>
cdi-dev mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;cdi-dev@lists.jboss.org&#39;)">cdi-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (<a href="http://www.apache.org/licenses/LICENSE-2.0.html" target="_blank">http://www.apache.org/licenses/LICENSE-2.0.html</a>). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.<br>
</blockquote>