No i don't use database,
Server side, i've got
- an static hashmap<idUser,usermodel> with all users online. ( add and
remove users by connectionEvents received from client)
- an static hashmap<idUser,Event> to know wich events to which
client .

for example :
 - on the client,
       =>jim connect    --> that sends an eventConnection to server --
>  add jim_user to the hashmap and return to client
 - another client;
      =>Abhiram connect    --> that sends an eventConnection to server
-->  add_Abhiram_user to the hashmap, add the events  to other users
( hashmap<Jim_User,Event>)
so jim_user receive the event and jim_user knows that Abhiram is
connected

 -  jim want to says something to all other user --> jim users send a
messageEvent to the server ( for all keyset of the
hashmap<idUser,Event> )
.......
.....
 - jim want to speak with Abhiram only) --> send a messageEvent to the
server and put only the event for the hashmap<Abhiram_user,Event> ...

sorry for my english ! I'm Frenchman.
;-)


On Dec 10, 11:19 am, abhiram wuntakal <abhir...@gmail.com> wrote:
> Hi jim,
>
> Thanks for that hint.
>
>   Well, are u getting the messages from the database? I mean there shud be a
> place from where the messages intended for a client shud be picked up right?
> So, have u kept the messages in the databse?
>
>  And are u able to support multiple chat windows for a single user who is
> chatting with many people?
>
>   Regards,
> Abhiram
>
> On Wed, Dec 9, 2009 at 10:10 PM, Jim <jimmy.verhee...@gmail.com> wrote:
> > hi, I've implemented a gwt Chat
>
> > the link
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
> > helps me.
>
> > From client, i do an rpc call
> > --> server-side, i'm waiting for event (using a timer) for the
> > client :
> > -- if i got an event for the client, i return to the client, and i do
> > again the rpc call.
> > -- if no events after 40 sec, i return to the client and says to the
> > client "No events!", and i do again the rpc call.
>
> > On Dec 9, 1:13 pm, abhiram <abhir...@gmail.com> wrote:
> > > Hi All,
>
> > >    Can someone tell me which is the best (and convenient) method to
> > > implement a chat application for my web page using GWT?
>
> > >   I believed using the comet.jar would be neat but had lot of problem
> > > implementin it. Can you please tell me which is the best possible
> > > approach? with any working examples / links?
>
> > > ~ Abhiram
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to