Tomcat and Bayeux for HTTP streaming
Hi all, I would like to use TOMCAT together with Bayeux to develop a streaming application. My question: 1) is it possible with Bayeux to send in one and the same HTTP response several messages at different times back to the client? 2) where can I find additional informations about Tomcat and Bayeux in context with streaming? many thanks Markus - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Comet question with Tomcat
Hi all, I am using Tomcat6 together with Comet. I implemented as described in the article Advanced IO and Tomcat the servlet, message sender ... The main reason for using comet is that I would like to implement a kind of streaming, what means: I am launching from the client with a AJAX request that is processed by the servlet: on the server the EventType.BEGIN is passed to the event method and than I start to run an specific algorithm. In this algorithm, whenever a specific event occurs, the message sender is notified and writes into the response write a content. This stream is send to the client, parsed and displayed in the page. Unfortunately on the client I only see the content send from message sender after the first event. All others are not send to the client even if the message sender writes it out int the response which is still open. On client side the javascript function (see below go()) is invoked only once. Any idea what I am doing wrong? function go(){ var url = http://myHost:8080/myServlet;; var request = new XMLHttpRequest(); request.open(POST, url, true); request.setRequestHeader(Content-Type, application/x-javascript;); request.onreadystatechange = function(){ if (request.readyState == 4) { if (request.status == 200) { if (request.responseText) { document.getElementById(msgContainer).innerHTML = request.responseText; } } } }; request.send(null); } - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Comet and mod_jk
Hi all, I see that when using Mod JK (ver. 1.2.26-2) together with Comet I always get the message: 405 HTTP method POST is not supported by this URL. (My servlet engine is tomcat 6.0.14) I googled and found out that mod_jk has its own connector which does not support the comet event. Is there a way to solve this problem ? E.g. specify in mod_jk to use the connector org.apache.coyote.http11.Http11NioProtocol If not, what else can you suggest me? For me it is not important to use mod_jk. The important thing is that the servlet invoked in my webpage (specified without port) is redirected tomcat. Many thanks Markus - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Comet and mod_jk
Filip Hanik - Dev Lists wrote: There are only two connectors in Apache Tomcat that support Comet, APR HTTP and NIO HTTP connectors. This means, if you want Apache in front of it, you would use mod_proxy_http Many thanks for your suggestion. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org