All you need to do is to have your "external java" use a websocket client (like Jetty's http://www.eclipse.org/jetty/documentation/current/jetty-websocket-client-api.html) to connect to your server's websocket endpoint. -- Igor Kolomiets
On Sat, Oct 25, 2014 at 3:41 PM, Jason Ricles <jgr...@alum.lehigh.edu> wrote: > 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? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org