A while ago me and Achim tried websockets with CXF, it failed miserably, so
I also swapped to PAX Web. Clearly not to say it doesn't work, but there
were a bunch of "oh we're so close, but its not working" moments....

On Mon, Apr 4, 2016 at 11:13 PM, Nick Baker <nba...@pentaho.com> wrote:

> Thanks Achim,
>
> This is interesting. I should have mentioned that we're using the CXF
> features from Karaf 4.0.3 and Blueprint XML. We're unfortunately not able
> to leverage WAB capabilities.
>
> -Nick
>
> From: Achim Nierbeck <bcanh...@googlemail.com>
> Reply-To: "user@karaf.apache.org" <user@karaf.apache.org>
> Date: Monday, April 4, 2016 at 3:47 PM
> To: "user@karaf.apache.org" <user@karaf.apache.org>
> Subject: Re: Working WebSocket example?
>
> 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 <nba...@pentaho.com>:
>
>> 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
>
>

Reply via email to