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 419C3C50D for ; Tue, 5 Jun 2012 19:19:24 +0000 (UTC) Received: (qmail 20390 invoked by uid 500); 5 Jun 2012 19:19:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20185 invoked by uid 500); 5 Jun 2012 19:19:20 -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 20174 invoked by uid 99); 5 Jun 2012 19:19:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 19:19:20 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ravikapoor101@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 19:19:12 +0000 Received: by yenm4 with SMTP id m4so5526171yen.18 for ; Tue, 05 Jun 2012 12:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=CNT7JNzQoFMm5vNLtjalFvnZ+ZXbtTzSPU5pSQG2R6o=; b=tKlLSlSjWv4D+isEXS9Pdp35ywE8Ka+ixdnlL3Dz3Aw/J+p9XBfOakwHrJX903Lf9f UO/3zMB18LzW0ghgamaTSOwPUhEfbeULnFcH7oxK+bWzCUGu7XxKBXjzbtqjczl1/PVC Aaqr0GnOFfLRZNMFHZiKsS0L1JukiijjaGOfWZ0oYvQCcWCxcGudXZhHA+nxJXPEcLuN 04JW9ETpzWukxevP0dpbrP/pPRmRwy8jTz5RjarrZ0dwPeQopzZnUfgzkkiU87gJEV1O PZu3hFjEQSxo0f+L8RyVk7cWoC7tdapQUyJcGusD5RSSsOvQajKZ0jvYs7r4nC4NIY4X EwRQ== Received: by 10.236.115.136 with SMTP id e8mr12729990yhh.63.1338923931863; Tue, 05 Jun 2012 12:18:51 -0700 (PDT) Received: from [192.168.15.2] (c-24-129-100-65.hsd1.fl.comcast.net. [24.129.100.65]) by mx.google.com with ESMTPS id z9sm8286949yhl.6.2012.06.05.12.18.50 (version=SSLv3 cipher=OTHER); Tue, 05 Jun 2012 12:18:50 -0700 (PDT) Message-ID: <4FCE5B94.3@gmail.com> Date: Tue, 05 Jun 2012 15:18:44 -0400 From: Ravi User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Tomcat Users List CC: Christian Finckler Subject: Re: getting frustrated with web sockets References: <4FC97CBA.6020709@gmail.com> <4FC9C189.7070901@gmx.de> In-Reply-To: <4FC9C189.7070901@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. 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