You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/10/13 13:47:34 UTC
[jira] [Resolved] (TOMEE-947) Injection doesn't work in WebSocket
inbound threads
[ https://issues.apache.org/jira/browse/TOMEE-947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved TOMEE-947.
--------------------------------------
Resolution: Not a Problem
api changed so surely no more relevant
> Injection doesn't work in WebSocket inbound threads
> ---------------------------------------------------
>
> Key: TOMEE-947
> URL: https://issues.apache.org/jira/browse/TOMEE-947
> Project: TomEE
> Issue Type: Bug
> Affects Versions: 1.6.0
> Environment: Oracle JDK 1.7.0.21, Linux i586, apache-tomee-1.6.0-20130525.041140-81-jaxrs
> Reporter: Dimitri
> Attachments: WebSocket-CDI-Test.war, WebSocket-CDI-Test.zip
>
>
> When using Tomcat's WebSocket implementation (that means, extending org.apache.catalina.websocket.WebSocketServlet), it is not possible to use injection, both CDI and non-CDI, from inbound processing threads. Injecting scoped and non-scoped objects simply gives null.
> Furthermore, when trying to access a session-scoped instance (OWB proxy) that has already been injected into some other object, the following is written to the log:
> May 26, 2013 7:57:49 PM org.apache.openejb.cdi.CdiAppContextsService lazyStartSessionContext
> WARNING: Could NOT lazily initialize session context because of null RequestContext
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)