Hello, Recently I started to develop a web application that is based on the Comet Architecture. After a lot of research, I realize that there is a lack of documentation and tutorials about how to build simple Comet applications on Tomcat. The tomcat Advanced IO documentation previews the way that the server handles the incoming different type events, but doesn’t explain how to produce these events from the client side (ex. IE, Firefox). The javascript snippet below produces such an event. function newConnection(){ xhr = new XMLHttpRequest(); xhr.open('GET','/comet' ,true); xhr.send(null); } When I execute this function, a new event (EventType.Begin) arrives on the CometServlet. I am wondering if there is way to produce an (EventType.READ) event from the client side.
Any suggestions? Thanks in advance! _________________________________________________________________ Drag n’ drop—Get easy photo sharing with Windows Live™ Photos. http://www.microsoft.com/windows/windowslive/products/photos.aspx