Re: tomcat comet, not working...

2007-06-01 Thread Mr. Steve Burrus
forgive my ignorance please, but what exactly is tomcat comet anyway?? I have never heard of it before so "enlighten" me about it. Márton Szabolcs wrote: Hi! Ive been trying to use tomcat comet for about a week, but i have no success. I have tomcat 6.0.13, with windows xp. I install the tomc

Re: tomcat comet, not working...

2007-05-30 Thread Szabolcs Márton
Hi again! i find these httpservletrequest.setAttribute("org.apache.tomcat.comet",Boolean.TRUE); httpservletrequest.setAttribute("org.apache.tomcat.comet.support",Boolean.TRUE); its seems, that you should set these values by hand somewhere, otherwise it will be NOT processed as Comet request. Is

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
as a client I use http://people.apache.org/~fhanik/cometgui.jar The client automatically translates \n into CRLF for the HTTP protocol To do what you need to do, do this 0. java -jar cometgui.jar 1. Click "Connect" 2. Click "Submit" 3. Erase the headers, make sure the next text looks like this:

Re: tomcat comet, not working...

2007-05-29 Thread Szabolcs Márton
Filip, i tryed and i got the same again: "The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL)." I could access this servlet in a normal way, like explorer and http://localhost:8080/cometd/cometddd or i could accept only something li

Re: tomcat comet, not working...

2007-05-29 Thread Peter Warren
Filip, could you post some client code that sends two separate messages to the server on the same output stream and generates both a begin event and then a subsequent read event. Thanks, Peter (I'm the guy who started the "comet read event" thread. I never heard back after you asked me which conn

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
you don't really have to do that much, here is mine package org.hanik.comet.test; import java.io.IOException; import java.io.InputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import org.apache.catalina.CometEvent; import org.apache.catalina.CometProcess

Re: tomcat comet, not working...

2007-05-29 Thread Szabolcs Márton
i will send later, i cant ftp from here. any other ideas? i would like if somebody, who made this cometprocessor worked describe the things what have to do. I already done what is in tomcat docs (advanced NIO) regards, Saby 2007/5/29, Filip Hanik - Dev Lists <[EMAIL PROTECTED]>: send us a link

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
send us a link to your test WAR file, and I can give it a shot, looks good to me. Filip Márton Szabolcs wrote: Hi! i set my connector like this. it should be correct, isnt it? CometSampleServlet sample.CometSampleServlet CometSampleServlet /CometSampleServlet public

Re: tomcat comet, not working...

2007-05-29 Thread Bernd Winterstein
This is the example from the tomcat user guide. I have the same problem getting it to work. 2007/5/29, Márton Szabolcs <[EMAIL PROTECTED]>: Hi! i set my connector like this. it should be correct, isnt it? CometSampleServlet sample.CometSampleServlet CometSampleServlet /Comet

Re: tomcat comet, not working...

2007-05-29 Thread Márton Szabolcs
Hi! i set my connector like this. it should be correct, isnt it? CometSampleServlet sample.CometSampleServlet CometSampleServlet /CometSampleServlet public class CometSampleServlet extends HttpServlet implements CometProcessor { protected ArrayList con

Re: tomcat comet, not working...

2007-05-29 Thread Bernd Winterstein
Can you send me your examples? Bernd 2007/5/29, Filip Hanik - Dev Lists <[EMAIL PROTECTED]>: if your service method is invoked means you are not running the correct connector. You must run the NIO or the APR connector. take a look at the "protocol" attribute in http://tomcat.apache.org/tomca

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
if your service method is invoked means you are not running the correct connector. You must run the NIO or the APR connector. take a look at the "protocol" attribute in http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Filip Márton Szabolcs wrote: Hi! Ive been trying to use tomcat co