I would like to make the connection between a websocket handshake \\ session to a HttpSession object.
I\'ve used the following handshake modification:
Building on @pavel-bucek 's answer, I wrote a simple HttpSessionInitializerFilter servlet filter.
Just download the jar from the "Releases" page and save it anywhere in the classpath, then add the following snippet to your web.xml descriptor (modify the url-pattern as needed):
HttpSessionInitializerFilter
net.twentyonesolutions.servlet.filter.HttpSessionInitializerFilter
HttpSessionInitializerFilter
/ws/*