I have implemented the following websocket endpoint
@MessageMapping("/socket/{myId}/") @SendTo("/queue/myqueue") public MyObject getObject(@DestinationVariable String myId) throws Exception { return new MyObject("MyId:" + myId); } Now how can I send message to that endpoint from one of my service.java class? There will be front-end client as well, which will read the message from websocket once the service.java class's method send some message to websocket endpoint. I am a little confused that how can I do that?
Any help would be appreciated