tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Dous <johnd...@hotmail.com>
Subject How to produce a Comet READ Event (EventType.READ) from the client side?‏
Date Mon, 06 Apr 2009 12:35:30 GMT

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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message