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 55486D9D4 for ; Sat, 1 Dec 2012 17:23:20 +0000 (UTC) Received: (qmail 15536 invoked by uid 500); 1 Dec 2012 17:23:16 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15316 invoked by uid 500); 1 Dec 2012 17:23:15 -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 15288 invoked by uid 99); 1 Dec 2012 17:23:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 17:23:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [98.139.213.165] (HELO nm20-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.165) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Dec 2012 17:23:05 +0000 Received: from [98.139.215.143] by nm20.bullet.mail.bf1.yahoo.com with NNFMP; 01 Dec 2012 17:22:44 -0000 Received: from [98.139.213.11] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 01 Dec 2012 17:22:44 -0000 Received: from [127.0.0.1] by smtp111.mail.bf1.yahoo.com with NNFMP; 01 Dec 2012 17:22:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1354382564; bh=buseTXAfTvZYVbRp7OPLtriI2hOspLHWfFMzsJe92P4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=GnPPffqnMdcxy5ManQyLtP6LYGXQ/T/5iAUbCrtnB7uALnOD2t89FPC/oLwJup/XHjzKy+Bu+PZAZTXtNJ7OmfLXuz0CnSNaSxqFq0Qc3h1Fn1hqZqjs8M+2XSUC4ERpVinaXZpmXetDyyTzRoyzrzG/KixhlaVYkk1MlWJr07A= X-Yahoo-Newman-Id: 244563.7036.bm@smtp111.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: sJbHqz4VM1koRjP5ZHbQjL.OBy83J4VUHGtfjSecBr0kwZ3 bBc03x6tkfC0fKaLiGUYY83AbaK52UzO.IoeLdwzI2qnxykhWd8p_PkJ8Ofr Vg90FLIc8N48EniIldA40VSWJ4Mzx57s6EqFYO08.YMHtEne0cN7LSVxFN_v a.Iwt74xKxnBY5ppNLEsCivcR8CptDP1I0JzOAajRA2t_d6Qw3MVHdiVkRkg w9YCnFb0YvTYA1fZxOnuJ4bLqFm7C1MMTuaVWtJzTXl8Bo_I3UlSbd9_8bc2 AOGjgd56K...HWW9dSi39zYpgqzQC6eRDnOT74SjTQOPTgQYi95X5Jn3Zg3n HE52IzHcD7RrwEUhRuFhA.HAS5OI8gJ18pKnOjKFayTFuwS6Xp2DqSeNI1YM ib3HQ7DWN6XD45zqfiAOYdHPGd8PTWGYlztunkuwwe3KUc72ofQpszJi1rs5 jlsAhmwEI.IdiB.pMcj_LvLwjjjh65Mic9Vjh8NHhdDhtjJcUcR4LtcYiRv2 a9xI1N0ge2k0h X-Yahoo-SMTP: PKuT8k2swBCeFOHzkGy5rTOUTa2hBxlR Received: from [127.0.0.1] (its_toasted@71.129.34.235 with plain) by smtp111.mail.bf1.yahoo.com with SMTP; 01 Dec 2012 09:22:44 -0800 PST Message-ID: <50BA3CC8.9010902@yahoo.com> Date: Sat, 01 Dec 2012 09:22:16 -0800 From: Mark Eggers User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomcat 7 udp connector References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 12/1/2012 5:16 AM, Jost Boekemeier wrote: > Hello, > > I am developing a JEE web application which has to handle HTTP, TCP > and UDP connections. > > Can Tomcat >= 7 handle raw TCP and UDP connections? Are there > extensions (connectors?) available which can handle them? > > *I am aware of mina.apache.org, and I can write my own socket server, > so please don't point me to these solutions. The requirement is a JEE > (Tomcat) web app.* > > > I think persistent TCP connections should easy to implement. But what > about UDP? > > > Any pointers welcome. > > > Regards, Jost Bökemeier > Jost, I wrote up a nice analysis of how you can accomplish your goals. Then I read the following lines: > *I am aware of mina.apache.org, and I can write my own socket server, > so please don't point me to these solutions. The requirement is a JEE > (Tomcat) web app.* I glanced at the Tomcat code, and it seems to be built in complete protocol stacks (HTTP, AJP, clustering). So without major Tomcat surgery I don't think so. I was thinking of a command and control application along with a stand-alone server, much like Derby has: http://db.apache.org/derby/docs/10.1/adminguide/cadminservlet98430.html However, the above constraint eliminates that approach. There are some really interesting hackish ways to approach this (JNDI beans for clients, ServletContextListener to start servers), but that's far off the beaten path. Maybe if you stepped back and wrote what you're trying to accomplish people can suggest some approaches. All of that is probably quite a bit off-topic from the mailing list. . . . . just my two cents. /mde/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org