Monday June 02, 2008
Tic Tac Toe using Rails and Grails on GlassFish v3
GlassFish v3
is a modular
(OSGi compliant), embeddable (runs in-VM) and extensible (hosts
non-Java applications) Application Server. The "extensible" part was
demonstrated during JavaOne
2008 by deploying Rails,
Grails and Django sample
application on GlassFish
v3 Technology Preview 2. This blog announces the availability
of Rails, Grails and (of course!) Java EE version of the demo code.
The
sample application is a simple multi-player game that can be played on
Internet and deployed on GlassFish. One of the simplest multi-player
game is Tic-Tac-Toe.
The complete instructions to checkout, build, deploy and run the sample
are available here.
The demo can certainly be improved by using the best practices from
Rails and Grails and I'll work on them in next few days.
The
demo is played in 2 different browser windows (tested on Firefox,
Safari & IE). The clicks in the grid on one browser are
displayed
on the other browser (propagated using GlassFish Comet) and row and
column winners are shown.

Posted by Arun Gupta in web2.0 | Comments[15]
|
|
|
|
|
Today's Page Hits: 2630
Total # blog entries: 931
Posted by Arun Gupta's Blog on June 26, 2008 at 06:17 AM PDT #
Posted by Arun Gupta's Blog on July 18, 2008 at 07:11 AM PDT #
Posted by Arun Gupta's Blog on September 05, 2008 at 10:19 PM PDT #
Posted by Arun Gupta's Blog on September 25, 2008 at 05:11 AM PDT #
Posted by Arun Gupta's Blog on October 21, 2008 at 11:07 AM PDT #
Posted by All the Way to the Beginning on October 23, 2008 at 10:56 AM PDT #
Posted by Arun Gupta's Blog on November 11, 2008 at 04:32 AM PST #
Good Morning Mr Gupta,
I am a spanish electrical engineering student and I am very interested in your post about the tic tac toe game.
I did a tic tac toe using javascript and I would like to make it multiuser using Ruby on Rails but Im not quite sure how to start...I tried to check out your code but when I introduce my java.net id it said "item not found" could you please help me.
Thank you very much.
Ernesto
Posted by Ernie on December 12, 2008 at 01:00 AM PST #
Ernesto,
Can you provide the exact commands you are using to check out the code ?
Posted by Arun Gupta on January 08, 2009 at 04:12 PM PST #
Good morning Mr Gupta,
I tried again this morning and everything was ok. I hope I can understand the code...
Thank you very much.
Ernesto
Posted by Ernesto on January 08, 2009 at 11:25 PM PST #
Ernesto, that's great!
I meant to update the code next week so that it works with Rails 2.x and some other improvements. Will keep the blog updated.
Posted by Arun Gupta on January 09, 2009 at 06:34 AM PST #
Hi Arun,
Did you update Tic Tac Toe demo ?
I'm interested to use it with Rails 2.3.2 and maybe refactor it to use jquery plugin's Comet
(http://code.google.com/p/jquerycomet/)
Thanks,
Babar
Posted by Babar on May 29, 2009 at 02:14 AM PDT #
Babar, have not updated the demo with Rails 2.3.2. Would you like to help ?
Posted by Arun Gupta on May 29, 2009 at 06:07 PM PDT #
I think I'll have time to do that this summer.
Posted by Babar on June 11, 2009 at 05:55 AM PDT #
Babar, Let me know when you are ready and I'll get you signed up.
Posted by Arun Gupta on June 11, 2009 at 06:00 AM PDT #