Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 34786 invoked from network); 29 Apr 2006 04:36:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Apr 2006 04:36:47 -0000 Received: (qmail 99000 invoked by uid 500); 29 Apr 2006 04:36:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98971 invoked by uid 500); 29 Apr 2006 04:36:33 -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 98960 invoked by uid 99); 29 Apr 2006 04:36:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 21:36:33 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2006 21:36:32 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FZhBc-0003Mi-M9 for users@tomcat.apache.org; Sat, 29 Apr 2006 06:36:05 +0200 Received: from pool-71-104-88-138.lsanca.dsl-w.verizon.net ([71.104.88.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Apr 2006 06:36:04 +0200 Received: from wbarker by pool-71-104-88-138.lsanca.dsl-w.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Apr 2006 06:36:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: "Bill Barker" Subject: Re: Is there a clean way to add Custom protocol endpoint to tomcat 5.5 Date: Fri, 28 Apr 2006 18:44:49 -0700 Lines: 84 Message-ID: References: <4450E67F.2000300@siunik.com> <445148FD.50300@siunik.com> <4451FDB6.8030605@siunik.com> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pool-71-104-88-138.lsanca.dsl-w.verizon.net X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N "David Gagnon" wrote in message news:4451FDB6.8030605@siunik.com... > Bill Barker wrote: > >>"David Gagnon" wrote in message >>news:445148FD.50300@siunik.com... >> >>>Hi all, >>> >>>I need to have my tomcat servers to broadcast their state (custom >>>information) in order for them to collaborate. >>> >>>I look into the cluster code, org.apache.catalina.cluster.mcast.* it a >>>good example of what I need : send a multicast message each X seconds and >>>keep a member list with their public info. >>> >>>My problem is to fin a way to starts MY protocol endpoint when Tomcat >>>boots. I don't want to put the code in my webApp, since I can have >>>several webapps on the same server. >>> >>>I looked into server.xml to find a way to starts it... I tought Connector >>>would be suitable for my needs but it seems strictly related to HTTP >>>request handling. >>> >>> >> >>In theory, you can write a ProtocolHandler for any protocol you like and >>plug it into the Connector. However, you are right that this is for >>Request processing. >> > Is server.xml supports a custom protocol Handler? For what I looked it > seem to be predefined connector one for HTTP, HTTPS and AJP/1.3. > If it possible in some way to hook by there I can live whith the fact that > is not the way that supposed to be used :-) > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" redirectPort="8443" acceptCount="100" > connectionTimeout="20000" disableUploadTimeout="true" /> > enableLookups="false" redirectPort="8443" protocol="AJP/1.3" > /> > > The values AJP/1.3 and HTTP/1.1 are just shortcuts for the respective default ProtocolHandlers. > > >>You could take a look at Tribes (container/modules/groupcom in the 5.5.17+ >>source distro/SVN co). It's still a work-in-progress, but it may let you >>do what you want. >> > Thanks for the info I'll look into it! > > Best Regards > /David > >> >>>I hope to find a way without changing the tomcat code base. >>> >>>Thanks for your help. >>>Best Regards >>>/David >> >> >> >> >>--------------------------------------------------------------------- >>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