The Source for Java Technology Collaboration
User: Password:



Jean-Francois Arcand

Jean-Francois Arcand's Blog

The Hitchhiker's Guide to the CometSamplesInGlassFishv3

Posted by jfarcand on April 03, 2008 at 06:24 PM | Comments (2)

v3 has now full support for Grizzly Comet..this is just the beginning as v3 is still under active development. Still I'm surprised to see it working on Firefox 3:


IMG_0211.JPG

Want to build your own Comet application? Look at Shing Wai simple but powerful tutorial. Want to see how the Comet revolution looks like on v3? Download one of the following samples:

To try them, Download GlassFish v3 Technology Preview 2, unzip the file and start it using


    java -Dv3.grizzly.cometSupport=true -jar ${glassfish.home}/modules/glassfish-10.0-SNAPSHOT.jar 

Next, copy drop the *.war under ${glassfish.home}/domains/domain1/autodeploy and you are ready to see Comet in v3! Want to see more powerful demo? You can also try the Direct Web Remoting DWR demo an soon, Ted from ICESoft told me WebMC will shake the v3.

Or maybe you would like to embed the Comet Runtime directly in your application like <Atl>Mobile is doing? Then you can try the samples,but this time using Grizzly runtime:

 java -jar grizzly-comet-webserver.jar -p 8080 -a samples_name Servlet_name

example:

java -jar grizzly-comet-webserver.jar -p 8080 -a \
grizzly-comet-chat.war com.sun.grizzly.samples.comet.AjaxCometServlet

The Comet revolution continue :-)

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 jean Please recommend books Network Programming Thank you

    Posted by: fenglanchi on April 07, 2008 at 05:06 PM

  • please tell me

    Posted by: fenglanchi on April 07, 2008 at 05:07 PM



Only logged in users may post comments. Login Here.


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