Re: comet events and connections

2007-04-26 Thread Daniel Doubleday
at org.apache.catalina.connector.CometEventImpl.close(CometEventImpl.java:84) -- View this message in context: http://www.nabble.com/comet-events-and-connections-tf3647567.html#a10196859 Sent from the Tomcat - User mailing list archive at Nabble.com

RE: comet events and connections

2007-04-26 Thread Reich, Matthias
: comet events and connections I think that the comet api represents a socket connection. The event life cycle is bound to the connection life cycle. You get an END (or ERROR etc) when the connection gets closed. But when you are writing something that still looks like a servlet you would

Re: comet events and connections

2007-04-26 Thread Rémy Maucherat
On 4/26/07, Reich, Matthias [EMAIL PROTECTED] wrote: Well, anyway the lifecycle should be well-defined, and I doubt that it currently is well-defined. If I try to find a better name for class CometEvent which reflects the lifecycle of it's instances according to the current implementation,

comet events and connections

2007-04-25 Thread Daniel Doubleday
://www.nabble.com/comet-events-and-connections-tf3647567.html#a10187852 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. I want to find out if my understanding of the comet api in tomcat is right concerning how connections are handled and event are triggered. I have a

Re: comet events and connections

2007-04-25 Thread Daniel Doubleday
://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. ... not sure I understand this and what you are trying to get at. Filip -- View this message in context: http://www.nabble.com/comet-events-and-connections-tf3647567.html#a10190519 Sent from the Tomcat

Re: comet events and connections

2007-04-25 Thread Rémy Maucherat
On 4/25/07, Daniel Doubleday [EMAIL PROTECTED] wrote: Here is the stack trace: Exception in thread Thread-17 java.lang.NullPointerException at org.apache.catalina.connector.CometEventImpl.close(CometEventImpl.java:84) at

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: I don't think that a event.close() call should throw a NPE when the event is already closed. But I would rather catch an exception when I am writing to response object that has been closed. that is possible to do, do you have the stack trace of the