"David Gagnon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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. 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. > I hope to find a way without changing the tomcat code base. > > Thanks for your help. > Best Regards > /David --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]