It seems that Tomcat has in the current trunk a module for Bayeux support. But this is not inclu开发者_JAVA百科ded in the current stable branch.
What is the Tomcat development process? Will Bayeux Support be included in the next version? What exactly does the "Modules" directory in the trunk mean? Is this just a playground that will never get into the final release or will the projects under modules later be incorporated into the final releases? Why is it not in the final release - it seems that it is present for quite a long time there?
Does anyone have know if this implementation is stable?
Is it possible to download this module somewhere? It seems it is not contained in the standard jars (at least not by this obvious name).
With tomcat 7 I believe you're best to look at the built in comet support, although it seems to handle the more generic case of comet rather than the specific bayeux protocol. The bayeux code you point too looks pretty bitrotted:
$ svn log http://svn.apache.org/repos/asf/tomcat/trunk/modules/bayeux/
But you could simply check it out and build it (from a bash shell):
$ svn co http://svn.apache.org/repos/asf/tomcat/trunk/ tomcat7
$ cd tomcat7/modules/bayeux
$ ant
unfortunately you'll need to check out all of tomcat7, as the antfile refers to files two levels above it in the root project directory.
FWIW, my company evaluated using the tomcat bayeux support (with tomcat6), and ended up going with cometd (which supports bayeux) on Jetty, partially because its being actively developed and has an active user community. Since tomcat7 supports the servlet 3 spec, you should be able to deploy cometd on top of tomcat7, but I haven't tried it myself.
精彩评论