The Source for Java Technology Collaboration
User: Password:



Jean-Francois Arcand

Jean-Francois Arcand's Blog

Building GWT Comet based web app using Grizzly Comet

Posted by jfarcand on May 20, 2008 at 12:58 PM | Comments (9)

I'm getting a lot of requests to share our JavaOne BOF slides where we have demonstrated the use of GWT + Grizzly Comet.

IMG_0268.JPG

Download the presentation here. We are still working on cleaning up the demo (and make sure I can commit the GWT code inside the Grizzly workspace). So stay tuned for the demo, but it is so simple to use Grizzly Comet + GWT you might not even need a demo :-). Unlike Jetty, you don't need any changes to GWT core classes to make it work :-) I was thinking to start blogging about GWT + Grizzly Comet integration, but I still need to write the follow up to my Grizzly SIP implementation first, so the preso should be a good startup. If you have questions, post them here or send an email to users@grizzly.dev.java.net

technorati:


Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment

  • Hi,
    I would be deeply interested in your demo :)
    I'm having some issues on the client side of GWT.

    Sami

    Posted by: sboudrai on May 22, 2008 at 01:19 AM

  • how would you ensure scalability over long lived connections at server side, especially if we have only one entry point to a server farm? It basically sounds more like an application, made only for a single physical server.

    Posted by: bertung on May 22, 2008 at 06:35 AM

  • Berlung, if you are planning to use Comet (GWT is not important here) inside a farm, you will need to make sure all the server inside the farm can communicate between them. With GlassFish, you usually uses JMS between Server to share the information. So if a request is sent to server-1, server-1 will send, via JMS, the request info to server-2, so both server-1 and server-2 can initiate a server push to their respective long lived connection. -- Jeanfrancois

    Posted by: jfarcand on May 22, 2008 at 08:17 AM

  • The code I wrote for GWT using long connections works with Firefox but not with IE (or GWT hosted browser), even if I try to bypass the 256B internal buffer. I'm running on glassfish v2ur2.

    I noticed the grizzly chat long connection doesn't work in IE either.

    Posted by: sboudrai on May 23, 2008 at 03:39 AM

  • Hum, which IE are you using? Works fine for me on XP + IE 7. Can you also point me to the proper example you have used? Better, can we continue the discussion on users@grizzly.dev.java.net. Thanks!!!

    Posted by: jfarcand on May 23, 2008 at 08:14 AM

  • I've written up a tutorial about how to do this here: http://www.javascriptr.com/2008/05/28/gwt-grizzly-comet/
    Check it out, its pretty rough, I'll be making improvements to it in the following weeks.

    Posted by: morock on May 28, 2008 at 08:24 PM

  • GWT + GRIZZLY + COMET

    Posted by: morock on May 28, 2008 at 08:25 PM

  • Hi Morock! Nice tutorial. I will link to it from grizzly.dev.java.net :-)!

    Posted by: jfarcand on May 29, 2008 at 02:05 PM

  • Thanks JF, me tutorial is still pretty rough, let me know if you have any tips. Also, let me know how your demo is going. I'd love to contribute!

    Posted by: morock on May 29, 2008 at 02:25 PM



Only logged in users may post comments. Login Here.


Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds