I am updating the websocket functionality for a gaming application and would like to have at its disposal an application layer protocol such as STOMP. I started the path of moving spring -websockets to the mix, but I had problems connecting the routing of incoming requests to my message handlers.
Section 21.2.1 of this document states that:
The above is intended for use in Spring MVC applications and should be included in the DispatcherServlet configuration. However, Spring s WebSocket support is not dependent on Spring MVC. It is relatively easy to integrate WebSocketHandler into another HTTP service using WebSocketHttpRequestHandler.
I was looking for some sample applications that used WebSocketHttpRequestHandler in this way and have not found it yet.
If someone can point me in the right direction, that would be awesome!
Thanks Jeremy
To update this, after two weeks, trying to get this integration for development, we threw a towel. The heart of our problem seemed to be the inability to display the play request object that Spring could recognize. Because of this, we could not agree on a handshake.
Some things that we have not tried MAY do something: 1) Deploy a game like .war so that there is a request to the server that you could receive. 2) Or maybe you could let the game negotiate a handshake, and once you have the socket connection, you can pass this to spring ...
But in the end, we put a lot of effort into trying to do this work, and decided that we would fully implement our application in spring.
source share