Hi Romain: I need to know how to connect since what appears to be the standard way doesn't work. For example
WebsocketContainer container = WebsocketProvider.getWebsocketContainer(); returns null with an exception that there is no implementation class available. If I use the Tyrus client jar with the Tomee server I get a handshake incorrect message. The next step would be Session session = container.connect(server URL); // don't have access to the API docs on this slow connection in the country but that's the general idea!. So a little tutorial on how to connect a JSE client to a Tomcat websocket server would be in order I'm thinking -- maybe event injecting an EJB into the ServerEndpoint or session... Thanks for helping me with this issue. Connecting my application(s) via websockets would, I think, be Java desktop developer nirvana. On Sat, May 3, 2014 at 8:54 AM, Romain Manni-Bucau <rmannibu...@gmail.com>wrote: > that's something else, tomcat client is available in tomcat but you > can use whatever client you want on the JSE part. > > Hope I got the question... > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-05-03 17:39 GMT+02:00 Chuck Davis <cjgun...@gmail.com>: > > I'm using 1.6.0.1, Romain. Obviously I don't know much about JEE but I > > want to learn how to connect my Java clients to the ejb container using > > websocket API. So far I have been unsuccessful finding any information > > about doing that with the Tomcat implementation. > > > > > > On Sat, May 3, 2014 at 8:17 AM, Romain Manni-Bucau < > rmannibu...@gmail.com>wrote: > > > >> Hi > >> > >> > >> which tomee do you use, we use (and we'll use) Tomcat implementation > >> which is actually good since totally rewritten (first version was done > >> by students based on servlets but today it has no more link with it to > >> be adapted to the spec). > >> > >> Client part should be here too (defaults are hardcoded in tomcat > >> websocket API so no need of META-INF/services/*) > >> > >> Well basically if you come with real examples we can maybe be more > >> precise. You can also ask tomcat guys to fix what you see as issue(s). > >> > >> > >> > >> > >> Romain Manni-Bucau > >> Twitter: @rmannibucau > >> Blog: http://rmannibucau.wordpress.com/ > >> LinkedIn: http://fr.linkedin.com/in/rmannibucau > >> Github: https://github.com/rmannibucau > >> > >> > >> 2014-05-03 16:51 GMT+02:00 Chuck Davis <cjgun...@gmail.com>: > >> > For background: I believe websockets finally give Java clients equal > >> > access with browsers to Java servers. For too long java clients have > had > >> > ridiculous connectivity limitations and overly complex requirements > that > >> > have been apparently erased with websockets implementation. > >> > > >> > I would like to create a websocket connection from my JSE application > >> > (implementing JavaFX) to Tomee. > >> > > >> > Unfortunately, the websockets implementation in Tomcat is very > incomplete > >> > (it only implements the browser implementation for understandable > >> reasons) > >> > but the spec includes provision for connection of Java clients to Java > >> > servers. > >> > > >> > If you look at the documentation for ContainerProvider for example, > it > >> is > >> > very clear that the implementation is to implement this class and the > >> > associated WebsocketContainer interface. Yet our Tomee implementation > >> does > >> > not include that implementation so we cannot make a connection from > Java > >> > clients. > >> > > >> > I don't know which implementation Tomcat has chosen to include but I > >> think > >> > Tomee needs something better -- more inclusive. > >> > > >> > Here's hoping I've missed something but my research so far indicates > the > >> > necessary entries in META_INF are not present in the current > websockets > >> > implementation -- I don't even know if the WebsocketContainer > interface > >> has > >> > been implemented -- I haven't been able to find out which > implementation > >> > Tomcat has included or who wrote it. > >> > > >> > Does anyone else want to see the spec fully implemented in Tomee or > am I > >> > the lone cowboy? > >> > > >> > CD > >> >