Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14340968E for ; Tue, 5 Jun 2012 19:27:14 +0000 (UTC) Received: (qmail 47265 invoked by uid 500); 5 Jun 2012 19:27:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47201 invoked by uid 500); 5 Jun 2012 19:27:10 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 47192 invoked by uid 99); 5 Jun 2012 19:27:10 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 19:27:10 +0000 Received: from localhost (HELO [192.168.23.9]) (127.0.0.1) (smtp-auth username markt, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 19:27:10 +0000 Message-ID: <4FCE5D82.50304@apache.org> Date: Tue, 05 Jun 2012 20:26:58 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: getting frustrated with web sockets References: <4FC97CBA.6020709@gmail.com> <4FC9C189.7070901@gmx.de> <4FCE5B94.3@gmail.com> In-Reply-To: <4FCE5B94.3@gmail.com> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 05/06/2012 20:18, Ravi wrote: > > Thanks a lot Chris. It took a lot of work for me to get websockets to > work. I wonder if you can help me little further. Here is my issue: > > 1. I need to get access to request and session. However when I get a > message in MyMessageInboundImpl class, I do not have access to either of > them. Why? Those are HTTP concepts and you are using WebSocket. Mark > 2. I tried to override doGet and save request/session, however after > saving request/session when I call super.doGet, I get "unauthorized > request". > > How can I get access to request and/or session when a message arrives? > > thanks > > > On 6/2/2012 3:32 AM, Christian Finckler wrote: >> Hello, >> I had the same problem some time ago. >> I could get jwesocket to work either. >> But I then used autobahn: >> http://autobahn.ws/developers/autobahnandroid/installation >> That worked great for me. >> >> I couldn't find out if the different client libraries do something wrong >> or tomcat but I was a bit disapointet, too. >> Perhaps that gets better when the draft is finished. >> >> Btw. for normal java I use asynch http with netty. >> >> Bye, >> Chris >> >> Am 02.06.2012 04:38, schrieb Ravi: >>> >>> I am trying to build an android app that connects to tomcat web sockets. >>> >>> I need a few java classes that can interact with tomcat websockets. I >>> have tried 3 different implementations >>> (strumsoft, jwebsockets and something else also) but neither one can >>> talk to tomcat correctly. >>> >>> The issue seems to be protocol incompatibility between tomcat as >>> server and any existing java websockets client. >>> >>> I even compiled jwebsockets swing based test client and that also >>> cannot talk to tomcat. Surprisingly all javascript based clients can >>> talk to tomcat, only java based cannot. >>> >>> >>> So having done all that research, I wonder if somebody can help me >>> identify java classes that will work with tomcat. Does tomcat have a >>> client jar I can use? >>> >>> Help! >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >> >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org