I have a tomcat webpage with a websocket server written in java to communicate with the webpage. I want this websocket server to be able to communicate with an external java program without an sockets, so something like this
webpage<---------------->websocket server<---------------->external java program However I am having trouble getting that to work, since to use the websocket server I need to make an instance of it and thus it thinks there are no session. So currently I have done it the following way webpage<------------->websocket server<---------------------->socket<------------------->external java program This is kinda messy however, so is there some way to get my external java program and my webpage to communicate through websockets without a socket go between?