[cdi-dev] [JBoss JIRA] (CDI-370) Expand @RequestScoped and @SessionScoped to account for WebSocket
Joseph Snyder (JIRA)
jira-events at lists.jboss.org
Mon May 6 07:47:53 EDT 2013
Joseph Snyder created CDI-370:
Summary: Expand @RequestScoped and @SessionScoped to account for WebSocket
Project: CDI Specification Issues
Issue Type: Bug
Reporter: Joseph Snyder
We've been testing injection into a WebSocket endpoint.
@ReqestScoped objects are usable within the @OnOpen callback. This is because this object is executed within a valid request scope.
However if you try to use the injected object from within the @OnMessage callback you get a Weld error:
WELD-001303 No active contexts for scope type javax.enterprise.context.RequestScoped
Can the definition of when @RequestScoped is active be expanded to include a WebSocket @OnMessage callback?
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cdi-dev