Re: Comet help about code

2010-10-06 Thread Y2i
This code is not specific to Commet, it simply uses Java foreach loop to iterate through Map's key-value entries. For each entry it takes a value and calls one of its methods. http://download.oracle.com/javase/1.5.0/docs/guide/language/foreach.html

Re: Comet help about code

2010-10-06 Thread Cristiano
Hi All, this is my pattern of how I implement comet. I may change how I handle the ArrayListMessage or use a timestamp as parameter of get method, but basically I always start from this simple snippet of code. It's for GWT but I've basically used it also in a Web Service and in a REST service.

Comet help about code

2010-10-05 Thread Yudji
I read the comet in http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98 Can explain to me about the code, because i dont undestand: public void send(String message) throws ChatException { .

Comet help about code

2010-10-05 Thread Yudji
I read the comet in http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98 Can explain to me about the code, because i dont undestand: public void send(String message) throws ChatException { .