You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Finckler, Christian" <Ch...@ottogroup.com> on 2012/04/12 16:00:59 UTC
working websocket-client in java
Hello,
I manage to configure the chat websocket servlet in tomcat and tried to call in with a java client.
As websocket-library I tried jwebsocket(http://jwebsocket.org/) and weberknecht(http://code.google.com/p/weberknecht/)
But both have connection problems. In both cases the server said, the request is syntactically incorrect.
Perhaps somebody of you already has a working javaclient implementation for testing purposes and could give me the code for trying out.
Thank you,
Christian
Re: AW: working websocket-client in java
Posted by Jeanfrancois Arcand <jf...@gmail.com>.
Salut,
try AHC: https://github.com/sonatype/async-http-client
A+
-- Jeanfrancois
On 12-04-12 11:27 AM, Finckler, Christian wrote:
> Hello,
> after the update I came further. The server now send the upgrade protocol response.
> But jwebsocket doesnt understand the response correctly.
> I posted on their forum (http://enapso.org/jwsForum219/posts/list/0/15608.page#16783) and they say, that they have to develop something to support the native tomcat websocket implementation.
>
> So I will wait for that.
> Or can you recommend a working java client library?
>
> Bye,
> Christian
>
> -----Ursprüngliche Nachricht-----
> Von: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
> Gesendet: Donnerstag, 12. April 2012 16:08
> An: Tomcat Developers List
> Betreff: Re: working websocket-client in java
>
> 2012/4/12 Finckler, Christian<Ch...@ottogroup.com>:
>> Hello,
>> I manage to configure the chat websocket servlet in tomcat and tried to call in with a java client.
>> As websocket-library I tried jwebsocket(http://jwebsocket.org/) and weberknecht(http://code.google.com/p/weberknecht/)
>>
>> But both have connection problems. In both cases the server said, the request is syntactically incorrect.
>>
>> Perhaps somebody of you already has a working javaclient implementation for testing purposes and could give me the code for trying out.
> 1. Try to compile the current tc7.0.x from svn. There was a fix
>
> <fix>
> <bug>53021</bug>: Correct WebSocket protocol version detection. (pero)
> </fix>
>
> 2. Debugging Tomcat:
> http://wiki.apache.org/tomcat/FAQ/Developing#Debugging
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
AW: working websocket-client in java
Posted by "Finckler, Christian" <Ch...@ottogroup.com>.
Hello,
after the update I came further. The server now send the upgrade protocol response.
But jwebsocket doesnt understand the response correctly.
I posted on their forum (http://enapso.org/jwsForum219/posts/list/0/15608.page#16783) and they say, that they have to develop something to support the native tomcat websocket implementation.
So I will wait for that.
Or can you recommend a working java client library?
Bye,
Christian
-----Ursprüngliche Nachricht-----
Von: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
Gesendet: Donnerstag, 12. April 2012 16:08
An: Tomcat Developers List
Betreff: Re: working websocket-client in java
2012/4/12 Finckler, Christian <Ch...@ottogroup.com>:
> Hello,
> I manage to configure the chat websocket servlet in tomcat and tried to call in with a java client.
> As websocket-library I tried jwebsocket(http://jwebsocket.org/) and weberknecht(http://code.google.com/p/weberknecht/)
>
> But both have connection problems. In both cases the server said, the request is syntactically incorrect.
>
> Perhaps somebody of you already has a working javaclient implementation for testing purposes and could give me the code for trying out.
1. Try to compile the current tc7.0.x from svn. There was a fix
<fix>
<bug>53021</bug>: Correct WebSocket protocol version detection. (pero)
</fix>
2. Debugging Tomcat:
http://wiki.apache.org/tomcat/FAQ/Developing#Debugging
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: working websocket-client in java
Posted by Konstantin Kolinko <kn...@gmail.com>.
2012/4/12 Finckler, Christian <Ch...@ottogroup.com>:
> Hello,
> I manage to configure the chat websocket servlet in tomcat and tried to call in with a java client.
> As websocket-library I tried jwebsocket(http://jwebsocket.org/) and weberknecht(http://code.google.com/p/weberknecht/)
>
> But both have connection problems. In both cases the server said, the request is syntactically incorrect.
>
> Perhaps somebody of you already has a working javaclient implementation for testing purposes and could give me the code for trying out.
1. Try to compile the current tc7.0.x from svn. There was a fix
<fix>
<bug>53021</bug>: Correct WebSocket protocol version detection. (pero)
</fix>
2. Debugging Tomcat:
http://wiki.apache.org/tomcat/FAQ/Developing#Debugging
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org