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 A8D3245C6 for ; Wed, 29 Jun 2011 17:11:51 +0000 (UTC) Received: (qmail 52465 invoked by uid 500); 29 Jun 2011 17:11:47 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52260 invoked by uid 500); 29 Jun 2011 17:11:47 -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 52251 invoked by uid 99); 29 Jun 2011 17:11:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Jun 2011 17:11:46 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [72.167.180.18] (HELO p3plex1out02.prod.phx3.secureserver.net) (72.167.180.18) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 29 Jun 2011 17:11:34 +0000 Received: (qmail 23548 invoked from network); 29 Jun 2011 17:11:14 -0000 Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.20) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 29 Jun 2011 17:11:14 -0000 Received: from P3PW5EX1MB14.EX1.SECURESERVER.NET ([10.6.135.87]) by P3PW5EX1HT002.EX1.SECURESERVER.NET ([72.167.180.20]) with mapi; Wed, 29 Jun 2011 10:11:06 -0700 From: Bob DeRemer To: "users@tomcat.apache.org" Date: Wed, 29 Jun 2011 10:10:57 -0700 Subject: HOW TO: create custom Tomcat 6 connector to do port sharing Thread-Topic: HOW TO: create custom Tomcat 6 connector to do port sharing Thread-Index: Acw2fzO7Ap+c4T1gR8yQ3sA5/huhAg== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_BD7102DA11F0E84FA6EBC1543E47127A0C46D495P3PW5EX1MB14EX1_" MIME-Version: 1.0 --_000_BD7102DA11F0E84FA6EBC1543E47127A0C46D495P3PW5EX1MB14EX1_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Tomcat gurus: I've scoured the net for information on how to do port sharing within the c= ontext of a Tomcat Servlet-based web application process. While there's so= me discussion, there still doesn't appear to be any solutions [YET] - that = I could find yet. What I need to do is the following: * receive both HTTP and XMPP traffic on a single port [either 80 or 443 - d= epending on security configuration] * route the HTTP traffic to Tomcat's HTTP Connector [or sub-processing comp= onent] if possible * route the XMPP to an embedded Vysper server * ALL running in the context of a single Tomcat Server process This will enable us to leverage the power/investment in our servlet infrast= ructure and Vysper XMPP all together without having to open multiple ports. If this is possible in either Tomcat 6 or Tomcat 7, please let me know how = I should go about this: * doing some custom extension in Tomcat (i.e. custom Tomcat connector that = uses Netty for example) * or, some other approach ??? please advise on how you would recommend achieving our goal. Thanks in advance, Bob Bob DeRemer Senior Director, Architecture and Development http://www.thingworx.com Skype: bob.deremer O: 717.505.7923 M: 717.881.3986 --_000_BD7102DA11F0E84FA6EBC1543E47127A0C46D495P3PW5EX1MB14EX1_--