How to propagate CDI session beans from HTTP session to WebSocket session?
问题 I googled a lot for this problem before posting this question and Accessing HttpSession from HttpServletRequest in a Web Socket @ServerEndpoint is one of the best Questions/Answers I was able to found, but it appears to not solve my problem. I was able to access HttpSession from websocket in this way, but I can't access the same CDI session bean instances as from normal HTTP requests. I tried to store in session the HttpSessionContextImpl Weld instance too and tried to use it on WebSocket