Re: Request after request.

2009-06-12 Thread Rvanlaak
Did you've found a sollution for your case? And, did you already take a look to GWTEventService? :) On 27 apr, 06:53, "davidst...@gmail.com" wrote: > I mean this : getThreadLocalRequest().getSession().getId() > gives me the same id for two different clients that are opened. > Someone told me th

Re: Request after request.

2009-04-26 Thread Vitali Lovich
Uggh - I don't bother with that. There's too many problems (at least anecdotally from 3rd parties - I've never used it myself). I think it's because there's no good overview describing how it works & what the various limitations are. Thus when you integrate with GWT, you can encounter situations

Re: Request after request.

2009-04-26 Thread davidst...@gmail.com
I mean this : getThreadLocalRequest().getSession().getId() gives me the same id for two different clients that are opened. Someone told me that maybe two browsers share a cookie cache/address space and because of that they see the same cookie. I googled this theme about two weeks but i did not fin

Re: Request after request.

2009-04-26 Thread Vitali Lovich
On Sun, Apr 26, 2009 at 3:29 PM, davidst...@gmail.com wrote: > > > Are you sure you're not doing a notify? Maybe you actually receive an > > event? InterruptedException (from memory, haven't looked at the javadoc) > > get's called when wait times out - if you call notify, it'll wake up the > > t

Re: Request after request.

2009-04-26 Thread davidst...@gmail.com
> Are you sure you're not doing a notify? Maybe you actually receive an > event? InterruptedException (from memory, haven't looked at the javadoc) > get's called when wait times out - if you call notify, it'll wake up the > thread normally. That's exactly what i do there, notifying. Forgive my

Re: Request after request.

2009-04-23 Thread Vitali Lovich
On Thu, Apr 23, 2009 at 2:05 PM, davidst...@gmail.com wrote: > > I tested both FF and IE6 . I'm pretty surprised too of the results, so > I'm still searching the problem. > > >Are you calling getEvents (the one > > that sends of the request to the server) on the client-side more than > once? > > N

Re: Request after request.

2009-04-23 Thread davidst...@gmail.com
Thanks Rvanlaak. I'll check those links. On Apr 23, 3:52 pm, Rvanlaak wrote: > For a chat app the Comet principal is needed. I've had the same > problem, so I would really advise you to look at the GWTEventService > library. That lib supports your needs out of the box, and is GWT 1.6.4 > compat

Re: Request after request.

2009-04-23 Thread davidst...@gmail.com
I tested both FF and IE6 . I'm pretty surprised too of the results, so I'm still searching the problem. >Are you calling getEvents (the one > that sends of the request to the server) on the client-side more than once? No, i checked it after you said that two requests is the maximum. I call the g

Re: Request after request.

2009-04-23 Thread davidst...@gmail.com
I tested both FF and IE6 . I'm pretty surprised too of the results, so I'm still searching the problem. >Are you calling getEvents (the one > that sends of the request to the server) on the client-side more than once? Yes, i checked it after you said that two requests is the maximum. I call the

Re: Request after request.

2009-04-23 Thread Rvanlaak
For a chat app the Comet principal is needed. I've had the same problem, so I would really advise you to look at the GWTEventService library. That lib supports your needs out of the box, and is GWT 1.6.4 compatible. Start using the lib is kinda tough, but you'll don't regret it! Take a look at ht

Re: Request after request.

2009-04-23 Thread Vitali Lovich
Seriously doubt it's a hosted mode mode issue. Which browser did you test web-mode with? Hosted mode actually launches a version of IE6, so using FF or IE7 may present different issues (for instance they might have a raised AJAX connection limit) The issue is purely on the client side. Are you

Re: Request after request.

2009-04-23 Thread davidst...@gmail.com
Well, it really looks like a bug, cause when i compile it to browser it works properly ( meanwhile ). Thanks for your answers. On Apr 23, 10:05 am, Salvador Diaz wrote: > As Vitali said, there are some common pitfalls when trying to > implement something along the lines of whatyou're trying

Re: Request after request.

2009-04-23 Thread Salvador Diaz
As Vitali said, there are some common pitfalls when trying to implement something along the lines of whatyou're trying to do. There have been plenty of discussions related to chat implementations and server-push. You might want to look at this docs: http://docs.codehaus.org/display/JETTY/GWT+RPC+E

Re: Request after request.

2009-04-23 Thread davidst...@gmail.com
I open two clients, and trying to send a message from one to another. So i have two requests hanging on server's side, and the third one trying to send the message. the server side is like this : @Override public ArrayList getEvents( Integer sessionId ) { U

Re: Request after request.

2009-04-22 Thread Vitali Lovich
Most browsers only support 2 outstanding AJAX events - that may be what you are running into. Without knowing what other calls you make, I cannot make a recommendation. One thing that does come to mind is that I hope you only call getEvents once on startup. On Wed, Apr 22, 2009 at 4:47 PM, david

Request after request.

2009-04-22 Thread davidst...@gmail.com
Hi. I'm trying to implement chat on my GWT app. So client has getEvents() function implemented like this : public void getEvents( ) { networkSvc.getEvents( new AsyncCallback< ArrayList >() { public void