tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: How to produce a Comet READ Event (EventType.READ) from the client side?‏
Date Mon, 06 Apr 2009 21:08:38 GMT
Comet READ events are generating when there is a POST method with a body

John Dous wrote:
> 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
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message