JRuby Hack Day and taking some help from
Nick, I figured out how to use the
JDBC connection pools configured in
GlassFish using the JNDI names.
All the commands given below are relevant for GlassFish but the same concept
will work where ever you deploy your WARed up JRuby
on Rails application.
Follow the bullet #1 and #2 from
here to create a new...
on Sep 12, 2007
This blog describes how to use jMaki actions and events to drive behavior or data in widgets. I will build a simple end to end application that shows the main concepts of widgets driving widgets (behavior) and also getting data from a server when needed.
I actually created two versions of the application, JSP and PHP, for this blog, Each have three Yahoo buttons named 'select CA', 'set Values...
on Sep 11, 2007
off 2007-2008 Tech Days
and marks the 10th anniversary of the developer event. This blog celebrates the
decade by announcing "Sun Tech Days Event Map" - a real-life
using jMaki. It allows you to choose the
date on a web page using a rich calendar widget, shows the city where
Sun Tech Days event is
happening during that month and then shows that city...
on Sep 11, 2007
Jersey provides a
type system for the encoding/decoding of a Java type to/from an entity of an
support was added in Jersey using the
BadgerFish convention for encoding/decoding
JAXB beans to/from JSON. A new
sample was also added in the
0.2.1 that demonstrates this concept.
This TOTD provides provides a trivial sample (using the snippets...
on Sep 10, 2007
There were about 300 people in attendance at this conference. There were about 40 people presenting during this three day event. With the communal meals and an attendee/speaker ratio on the order of 8 to 1, there was ample opportunity for attendees to have in-depth conversations with the speakers that you don't normally see at most other conferences. Plus, these speakers are all top caliber folks...
on Sep 9, 2007
The first ever
The Rich Web Experience 2007 just got over and I enjoyed
participating in the conference.
This conference is part of No
Fluff Just Stuff Symposium series and truly lived up to it's name and
these are some of my reasons:
There indeed was no "fluff", just real meaty talks full of "stuff".
This indeed was an "experience" - not just a...
on Sep 8, 2007
NetBeans 6 IDE comes pre-configured with
JRuby interpreter. This TOTD explains how the
JRuby interpreter can be swapped with a C-based Ruby interpreter and vice versa.
Verify the JRuby interpreter
Rails Hello World using NetBeans 6 IDE.
Expand "Views", "say", and open "hello.rhtml".
Right-click in the "hello.rhtml" window and select...
on Sep 7, 2007
The NetBeans IDE has
simplified the steps to deploy JRuby on
Rails application on
GlassFish. This blog explains the steps
and is an update to
Download the install the latest
Nightly. I downloaded the Ruby pack by clicking on the "Download"
button in the Ruby column.
Create a new Rails Application
Right-click in the Project window and select "New...
on Sep 7, 2007
Jersey is the open
source JAX-RS (JSR 311) Reference
Implementation for building RESTful Web services. Paul announced the
0.2.1. This blog entry describe the steps to get started with Jersey and
provide useful pointers for further exploration.
Download a stable build from
here or the latest binary from
here. jersey-xxx-ea.zip is the binary distribution and
on Sep 6, 2007
Sun Microsystems is a
silver sponsor of
The 2007 Rich Web Experience. This conference is targeted for web designers,
software architects, programmers, developers, and technical managers interested
much more content related to Web will be covered in 6 parallel tracks in 50
sessions by over 35 speakers.
on Sep 5, 2007
As a newbie to
Rails, "Gem" and "Plugin" terminology
was slightly confusing to me. Specifically I saw the terms being used
interchangeably sometimes. This
TOTD highlights the
difference between Ruby Gem and
Ruby Gem and Plugin are both packaging systems - the main difference is the
scope in which they are effective. The common differences are highlighted in...
on Sep 4, 2007
Heinemeier Hansson (creator of Rails)
talks about the upcoming Rails
Conf Europe, future of Rails, JRuby and
other things. Here are some quotes ...
On JRuby and Rails
JRuby is a great way to open the conversation
with enterprises by saying, You don't have to throw out all this "junk"
you've accumulated over the years, Ruby is just an incremental...
on Sep 1, 2007
tutorial from SWDP explained the different approaches to load your own data
into a jMaki widget. The jMaki widget models have
formalized since then and so the code there no longer works. This TOTD
explains how a combo box widget in a JSP page gets it data from a bean.
This TOTD uses NetBeans IDE configured with
jMaki plugin and
Create a new Web application project using...
on Aug 30, 2007
Doris pointed out that one of my
earlier post is not working any more. That entry explained the steps to
create a Web application, deployed on
GlassFish V2, and contained a jMaki-wrapped
Yahoo Data Table widget pulling data from
JavaDB using the
The main reason for this is because
models have evolved since I wrote the original entry and are now
formalized. Here is the delta...
on Aug 27, 2007
ActiveRecord-JDBC 0.5 is
now available. As mentioned
earlier, one of the main features in this release is simplified database
configuration for JRuby-on-Rails applications. From the
It is no longer necessary to specify :driver and :url configuration
parameters for the mysql, postgresql, oracle, derby, hsqldb, and h2
This means that if you deploy a Rails...
on Aug 27, 2007
is a light-weight framework for build Web 2.0 applications. It provides support
for multiple languages - Java (1,
6) , PHP, Ruby (1,
The numbers in parentheses indicate the entries that I've created showing jMaki
support for that language. As evident, I've not created a single entry for PHP
yet. This entry is going to change that :)
This entry shows how to...
on Aug 24, 2007
Caucho Technology's 100% Java implementation of
PHP 5. Ludo
described the steps to deploy PHP web applications on
GlassFish. Caucho has released a new
version of Quercus since then. This blog
entry is an update to the
steps described earlier.
First, PHP-enable GlassFish.
quercus-3.1.1.war and copy the JAR files in "WEB-INF/lib"
directory to "GLASSFISH_HOME...
on Aug 24, 2007
previous screencast, I showed how to develop a Rails application fetching
data from the MySQL database and deploy it in
GlassFish. GlassFish comes pre-bundled with
JavaDB. Based upon a
user request, this TOTD shows to use JavaDB database instead of MySQL.
Here are the steps required to replace MySQL database
configuration with JavaDB. You can either mix these steps with the existing...
on Aug 20, 2007
Here are few pointers to get you started on
Ruby-on-Rails in GlassFish and
NetBeans Ruby wiki
Demos and Tutorials
JRuby posts from
Planet NetBeans (aggregated
feed for everything related to NetBeans)
on Aug 17, 2007
previous screencast, I showed how a Rails application can be deployed as WAR
file on GlassFish V2. In
GlassFish V3, the Grizzly connector
by-passes the need to bundle a Rails application as WAR. Instead it directly
invokes JRuby interpreter and deploys a Rails application without any
This blog entry describes the exact steps to deploy your first JRuby
on Aug 13, 2007