Re: GWT Chat applications

2013-10-06 Thread suresh babu
I have created chat app using Gwt, Rpc call to store and retrieve, backend 
I have used objectify and Google App engine, App link : 
http://my-health-care.appspot.com/Chat.html , works well and good :)

Thanks,
Suresh


On Monday, September 30, 2013 8:37:54 PM UTC+5:30, Timothy Spear wrote:

 I used get-eventservice to build a custom solution. 
 Requirements were for system to client and client to client messaging. 
 Uses one of the two RPC connections most browsers allow JS.
 So far working well.

 Tim

 On Sep 30, 2013, at 11:03 AM, David Levesque 
 dlev...@primalogik.comjavascript: 
 wrote:

 I have built a chat front-end using GWT, 
 Strophe.jshttp://strophe.im/strophejs/and 
 gwt-strophe https://launchpad.net/gwt-strophe (bindings for GWT). 
 Strophe simulates persistent XMPP connections through 
 BOSHhttp://en.wikipedia.org/wiki/BOSH. 
 For the server I used Tigase http://www.tigase.org/, but it should work 
 with any XMPP complient server. There are many good open source chat 
 servers that allow you to write custom plugins in java (e.g. for 
 authentication and integration with your back-end). 
 Openfirehttp://www.igniterealtime.org/projects/openfire/is a popular one.

 The advantage of having a separate chat server is that it removes a lot of 
 load (and at lot of long lived connections) from your servlet container. 
 The drawback is that it makes integration with your webapp harder, because 
 you have to write plugins to talk to your backend. But imo it scales 
 better, especially if you're going to have hundreds or thousands of 
 simultaneous chat users.

 Basically my GWT app uses GWT-RPC to talk to Tomcat, but the chat stuff 
 does not go to Tomcat. It goes to the standalone Tigase server living on 
 the same machine. All traffic go through port 80 (or 443) and it is routed 
 to either Tomcat or Tigase using reverse proxy rules in Apache Web server.

 Unfortunately I can't show you the code or point you to a live example 
 because it was developped for a company I worked for (closed source) and 
 the application is not open to public.

 --
 David


 On Wednesday, December 9, 2009 7:13:16 AM UTC-5, abhiram 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to 
 google-we...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Chat applications

2013-09-30 Thread David Levesque
I have built a chat front-end using GWT, 
Strophe.jshttp://strophe.im/strophejs/and 
gwt-strophe https://launchpad.net/gwt-strophe (bindings for GWT). Strophe 
simulates persistent XMPP connections through 
BOSHhttp://en.wikipedia.org/wiki/BOSH. 
For the server I used Tigase http://www.tigase.org/, but it should work 
with any XMPP complient server. There are many good open source chat 
servers that allow you to write custom plugins in java (e.g. for 
authentication and integration with your back-end). 
Openfirehttp://www.igniterealtime.org/projects/openfire/is a popular one.

The advantage of having a separate chat server is that it removes a lot of 
load (and at lot of long lived connections) from your servlet container. 
The drawback is that it makes integration with your webapp harder, because 
you have to write plugins to talk to your backend. But imo it scales 
better, especially if you're going to have hundreds or thousands of 
simultaneous chat users.

Basically my GWT app uses GWT-RPC to talk to Tomcat, but the chat stuff 
does not go to Tomcat. It goes to the standalone Tigase server living on 
the same machine. All traffic go through port 80 (or 443) and it is routed 
to either Tomcat or Tigase using reverse proxy rules in Apache Web server.

Unfortunately I can't show you the code or point you to a live example 
because it was developped for a company I worked for (closed source) and 
the application is not open to public.

--
David


On Wednesday, December 9, 2009 7:13:16 AM UTC-5, abhiram 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 unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Chat applications

2013-09-30 Thread Timothy Spear
I used get-eventservice to build a custom solution. 
Requirements were for system to client and client to client messaging. Uses one 
of the two RPC connections most browsers allow JS.
So far working well.

Tim

On Sep 30, 2013, at 11:03 AM, David Levesque dleves...@primalogik.com wrote:

 I have built a chat front-end using GWT, Strophe.js and gwt-strophe (bindings 
 for GWT). Strophe simulates persistent XMPP connections through BOSH. For the 
 server I used Tigase, but it should work with any XMPP complient server. 
 There are many good open source chat servers that allow you to write custom 
 plugins in java (e.g. for authentication and integration with your back-end). 
 Openfire is a popular one.
 
 The advantage of having a separate chat server is that it removes a lot of 
 load (and at lot of long lived connections) from your servlet container. The 
 drawback is that it makes integration with your webapp harder, because you 
 have to write plugins to talk to your backend. But imo it scales better, 
 especially if you're going to have hundreds or thousands of simultaneous chat 
 users.
 
 Basically my GWT app uses GWT-RPC to talk to Tomcat, but the chat stuff does 
 not go to Tomcat. It goes to the standalone Tigase server living on the same 
 machine. All traffic go through port 80 (or 443) and it is routed to either 
 Tomcat or Tigase using reverse proxy rules in Apache Web server.
 
 Unfortunately I can't show you the code or point you to a live example 
 because it was developped for a company I worked for (closed source) and the 
 application is not open to public.
 
 --
 David
 
 
 On Wednesday, December 9, 2009 7:13:16 AM UTC-5, abhiram 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 unsubscribe from this group and stop receiving emails from it, send an 
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Chat applications

2013-09-29 Thread suresh babu

I have created chat app using Gwt, Rpc call to store and retrieve, backend 
I used objectify and Google App engine, 
App link : http://my-health-care.appspot.com/Chat.html , works well and 
good :) 

Thanks,
Suresh

On Wednesday, December 9, 2009 5:43:16 PM UTC+5:30, abhiram 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 unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Chat applications

2013-09-29 Thread Manuel
Maybe you want to go with websockets. Have a look at this example: Chat 
example http://www.fta.hk/examples/websocket/chat.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: GWT Chat applications

2010-01-11 Thread Richard
My project gwt-comet implements Comet by streaming messages over long
lived HTTP requests to minimise latency and bandwidth requirements and
maximise the throughput. This is opposed to many other implementations
which use polling or long polling techniques.

http://code.google.com/p/gwt-comet/

On Dec 9 2009, 10: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 thecomet.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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT Chat applications

2009-12-10 Thread abhiram wuntakal
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.comgoogle-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.




Re: GWT Chat applications

2009-12-10 Thread Jim
No i don't use database,
Server side, i've got
- an static hashmapidUser,usermodel with all users online. ( add and
remove users by connectionEvents received from client)
- an static hashmapidUser,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
( hashmapJim_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
hashmapidUser,Event )
...
.
 - jim want to speak with Abhiram only) -- send a messageEvent to the
server and put only the event for the hashmapAbhiram_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.comgoogle-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.




Re: GWT Chat applications

2009-12-10 Thread Mohamed Mansour
I would rather use JMS to do this. You have the power to do so. Every
client writes to some Queue, and registers himself with a ReplyTo
temporary queue. That way the server handles all the messages and
sends the message to the appropriate queue where GWT is listening to.


On Dec 9, 7:13 am, 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT Chat applications

2009-12-10 Thread Kiril Piskunov
You should check out this example.

http://www.gwtapps.com/?page_id=31
Source:
http://groups.google.com/group/gwtapps/files

It is implementing using hanging async call so if there are no
messages, polling time is reduced to 30 seconds.
For the server side code there author included example using comet as
well. But if you are not going to have many users you can use it
without Comet.

On Dec 9, 12: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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT Chat applications

2009-12-09 Thread P.G.Taboada
I personally would not push the messages from the server, but have the
clients polling.

The rest is server-side coding. What backend are you targeting?
Don't forget that you will have to handle thread-safety issues on the
server side.

brgds,

Papick G. Taboada


On 9 Dez., 13:13, 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT Chat applications

2009-12-09 Thread abhiram wuntakal
But, client side polling would make the system slow right? and how to do I
decide the frequency of polling?

Backend is pure Java with the database interaction thru hibernate.

~ Abhi

On Wed, Dec 9, 2009 at 7:18 PM, P.G.Taboada pgtabo...@googlemail.comwrote:

 I personally would not push the messages from the server, but have the
 clients polling.

 The rest is server-side coding. What backend are you targeting?
 Don't forget that you will have to handle thread-safety issues on the
 server side.

 brgds,

 Papick G. Taboada


 On 9 Dez., 13:13, 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.comgoogle-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.




Re: GWT Chat applications

2009-12-09 Thread P.G.Taboada
Slow on what end?

Sure, pushing from server would lead to instant message delivery, but
I don't think it scales very well.
Do you know how may connections you can keep open?
You could change the polling rate depending on the load status of the
server, just a thought.


brgds,

Papick

On 9 Dez., 14:52, abhiram wuntakal abhir...@gmail.com wrote:
 But, client side polling would make the system slow right? and how to do I
 decide the frequency of polling?

 Backend is pure Java with the database interaction thru hibernate.

 ~ Abhi

 On Wed, Dec 9, 2009 at 7:18 PM, P.G.Taboada pgtabo...@googlemail.comwrote:



  I personally would not push the messages from the server, but have the
  clients polling.

  The rest is server-side coding. What backend are you targeting?
  Don't forget that you will have to handle thread-safety issues on the
  server side.

  brgds,

  Papick G. Taboada

  On 9 Dez., 13:13, 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.comgoogle-web-toolkit%2Bunsubs 
  cr...@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.




Re: GWT Chat applications

2009-12-09 Thread Jim
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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.