A Rails 2.0.2 application configures SQLite3 database by
default. This requires you to have SQLlite3 database running and also
have the corresponding database adapter installed. Even this is part of
the Leopard (Mac OS 10.5+) development kit but this needs extra
configuration on non-Leopard machines.
One of the guiding principles of Rails is Convention-over-Configuration.
So there are couple of...
on Feb 15, 2008
6.1 M1 is now available. Download here!
There are several
features in M1. But the feature I liked the most is storing
multiple Ruby/JRuby runtime configurations in the IDE. In NetBeans 6.0
only one Ruby platform could be configured and stored. So if you have
to change to another Ruby environment then you have to edit the values
in the IDE. 6.1 M1 allows to configure and store multiple...
on Feb 15, 2008
an updated version 0.1.1 of the JRuby
GlassFish v3 gem.
What's New ? - Mainly
alignment with Rails convention
The name of the gem is changed from "GlassFish" to
The default port number is 3000.
Applications are deployed at root context ("/"). So the
default application is now deployed "http://localhost:3000/home/index"
instead of "http://localhost:8080/temp/...
on Feb 14, 2008
started earlier today (now yesterday) in Orlando, Florida with Charity
Session. Completely sold out with 165 attendees!
developer) talked about Merb.
What is Merb
Started after tried to make Rails thread-safe and memory
foot print lower.
All (everything?) you need, none you don't.
Key features of Merb are: Thread-safe...
on Feb 8, 2008
v3 Gem allows JRuby-on-Rails application to be launched in GlassFish
v3 server. It provides a robust alternative to WEBrick and
for development and deployment of your JRuby-on-Rails applications.
UPDATE (Feb 14): A 0.1.1 version of the gem is released which will change the installation process.
Gem was originally announced here
and then updated here.
on Feb 8, 2008
This TOTD (Tip Of The Day) shows how to install Rails 2.0.x in JRuby
1.0.3 and JRuby 1.1 RC1. Then it describes how a simple Rails
application can be created and deployed using WEBrick.
First, lets deal with installing Rails 2.0.x in JRuby 1.0.3 and JRuby
Step 1: How to install Rails
2.0.x in JRuby 1.0.3 ?
Download and Unzip JRuby
1.0.3. This creates "jruby-1.0.3"
on Feb 6, 2008
There are several reasons you may deploy JRuby-on-Rails application on GlassFish:
Java EE is a long tested deployment platform and GlassFish
is Java EE 5 compliant.
GlassFish "green" deployment model - just create a WAR and
dump it in
autodeploy directory. Typical Rails deployment requires to spawn
multiple Mongrels, front-ended by Apache and then manage them through
Java EE and Ruby...
on Jan 29, 2008
The jMaki session at the
Ajax World East 2008 is featured on
several jMaki screencasts before the talk :)
Jean-Francois is also
Asynchronous Ajax for Revolutionary Web Applications - He is a great speaker
and interesting topic too!
If you want to speak, the
Call For Paper for Ajax
World closes tomorrow (Jan 25, 2008).
on Jan 25, 2008
Sun Microsystems is a Gold sponsor of Ajax World 2008, New York City.
I'll be speaking on Web
Application Development using jMaki.
jMaki is a light-weight framework to create Rich Internet Applications
using the best tools/libraries and standard practices. I plan to
deliver the talk with lots of demos
and hope you'll be able to correlate them with real-life scenarios
easily. Of course,...
on Jan 9, 2008
and I presented on GlassFish/JRuby
to a partner in San Francisco a few days ago. Here are the questions
asked during the session:
running the Ruby tests show the green/red status bar ?
status bar is shown if the test is run as a test, not as a file. (for
example, using Ctrl+F6, not Shift+F6). Ctrl+F6 can also be invoked on
the tested class
and it will...
on Jan 8, 2008
Pramod published an updated JRuby
Gem for GlassFish v3. Download the gem here.
Here are the updates from last
The Gem is now smaller - 2.4 MB instead of 2.9 MB (approx
The Gem is now using the latest v3 codebase, including
Grizzly JRuby module 1.6.1.
2 Rails instances are created instead of the default one.
So now 2 requests can be invoked in parallel and they both will be...
on Jan 5, 2008
my role of Technology Evangelist, I get the opportunity to meet a lot of
community (folks like you :) all around the world. In the year 2007, I
(and related technologies - Metro,
jMaki and Jersey)
conferences. This blog introduces a new real-life
application that plots all the places I visited this year on a
Google Map widget. Clicking on...
on Jan 1, 2008
JRuby 1.0.3 was recently
released and so was Rails
2.0. I decided to try JRuby 1.0.3 + Rails 2.0 and realized
that a few additional steps (because of Rails 2.0) are required to get
a trivial Hello World
applcation up and running. Here are the steps:
Make sure to set JAVA_HOME and JRUBY_HOME.
Also include JAVA_HOME/bin and JRUBY_HOME/bin in PATH for
on Dec 21, 2007
updated the JRuby-on-GlassFish module on the
GlassFish Update Center with
Rails 1.2.6 and
Goldspike revision 808.
I created a standalone (self-contained with all the libraries, gems &
plug-ins) and shared (contains only web.xml and libraries
are loaded from the Application Server instance) WAR image for the bundled
Hello World sample. The
screencast #web9 provide...
on Dec 17, 2007
I presented on GlassFish and other
related technologies (Metro,
Bangalore, Chennai and Pune
week. The slides used during the preso are
here. And here is the list of questions (along with answers) for you:
What does WSIT offer ?
WSIT stands for Web Services
Interoperability Technology. It is a component of
Metro - the Web services stack in
on Dec 13, 2007
This TOTD explains how to create a new jMaki
widget and make it available in the NetBeans
In order to create a jMaki widget, it's important to understand the
Basically, "component.htm", "component.js" and an optional "component.css"
together make a jMaki widget.
Here are the files for a Hello World widget that takes an...
on Dec 12, 2007
I presented on Metro,
JRuby-on-GlassFish at a partner meeting on Nov
21 in Toronto and Montreal (yeah, both cities in the same day). That
makes it 3 cities (the first one being
Seattle) total for now!
I've given multiple talks all over the world to different types of
audience but this was my first experience in terms of talking for 3
hours in the morning, flying to...
on Nov 28, 2007
Jerome posted the
instructions to build
GlassFish v3 Gem for JRuby - very simple and easy. A binary version of Gem
Subversion client (for example
JRuby 1.0.x (I used
and lets say installed in JRUBY_HOME). Make sure
JRUBY_HOME/bin is in your path.
Build the Gem
As explained in
on Nov 19, 2007
Earlier Post, I described how Mephisto
(a popular web publishing system based on Ruby on
Rails) can be deployed on
Both JRuby and GlassFish has matured since then and this post will provide
the updated instructions to deploy Mephisto using
GlassFish v3 Gem.
Here are the exact steps:
Install and Configure JRuby 1.0.2. The GlassFish v3 Gem does not work on
on Nov 15, 2007
JRuby 1.0.2 was released
A total of 99 issues were fixed but I'm particularly excited
JRUBY-1410. These are
some issues that I faced (1347
here) on my primary development machine - Windows.
Here is the status report:
On Windows only, the latest Rails gem (1.2.5) is now working
with stable release of...
on Nov 9, 2007