Hi, might want to take a look at this one [1]. It should work right away with K4 and Pax-Web 4.2.x
regards, Achim [1] - https://github.com/ops4j/org.ops4j.pax.web/tree/pax-web-4.2.x/samples/websocket-jsr356 2016-04-04 21:40 GMT+02:00 Nick Baker <[email protected]>: > Hey All, > > Does anyone have a working project using WebSockets? I was trying a quick > prototype repurposing the CXF example but haven't had any luck: > > > https://github.com/apache/cxf/blob/master/distribution/src/main/release/samples/jax_rs/websocket/src/main/java/demo/jaxrs/server/CustomerService.java > > > I keep receiving a 200 from the server, whereas 101 should be returned: > > [Error] WebSocket connection to > 'ws://localhost:8181/cxf/sockets/infinitymachine/clock' failed: Unexpected > response code: 200 > > Thanks, > Nick > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master
