4 Replies Latest reply on Dec 13, 2006 10:07 AM by lcoetzee

    Ajax Push/Reverse Ajax?

    lcoetzee

      Hi,

      I have been looking a bit at implementing some kind of chat room funcitonality in my application using Seam and Ajax. From the Seam docs I see that the Ajax uses polling to contact the server to retrieve updates. I have been wondering if it wont be possible to implement some kind of "Push" from the server side through Seam.

      I know there are a few commercial things out there doing this kind of push e.g.:
      http://www.lightstreamer.com/ and
      http://www.icesoft.com (the Enterprise Edition).

      Would be nice to have this kind of functionality in Seam. Any ideas or suggestions of how to possibly do it ?

      Regards

      Louis

        • 1. Re: Ajax Push/Reverse Ajax?
          gavin.king

          Have you tried out the example in remoting/chatroom?

          • 2. Re: Ajax Push/Reverse Ajax?
            lcoetzee

            Gavin,

            excellent example (had a quick look/play with it now). That is the way I was thinking (to use a message topic, publish/subscribe etc. (just looked at the JMS Messaging in the docs as well)).

            From what I can see this example does not use the normal polling mechanism (I have just browsed the code briefly), but uses some kind of callback mechanism (channelMessageCallback)? Or does it still use some kind of polling to contact the message queue ?

            L




            • 3. Re: Ajax Push/Reverse Ajax?
              gavin.king

              This is all Shane Bryzak's work ;-)

              • 4. Re: Ajax Push/Reverse Ajax?
                lcoetzee

                Great work Shane et. al.
                I love Seam! Has made my life so much easier !

                Had a quick look in the Seam code. Appears to be using polling. However I think it will work well (as long as one doesn't have massive number of people killing the server in terms of load).

                L