I want to use SessionScoped on WebSocketEndpoit and an observer method that should access the session. Please share if anybody used custom SessionScope on WebSocketEnd point and how it is done? Came across this project wem-generic-jee7-scopes on github, but looking for an example on how to use it. My problem is same as described in the article athttps://abhirockzz.wordpress.com/2015/02/10/integrating-cdi-and-websockets/ . Trying to explore if this can be solved using custom scopes. Thanks
By definition, websocket endpoints are application scoped beans. They are not session scoped. There is no concept of an HTTP Session in websockets. Custom scopes would mean that you're not using a session but some other scope.