This screencast shows how to create a simple
jMaki application, using
NetBeans IDE, that performs
some of the
CRUD operations on a Data Table widget. It uses Java Persistence API
(JPA) to connect to the database and the application is deployed on
GlassFish. The rest of the CRUD
operations can be easily built using the same methodology.
followed in this...
Previous Entry explained how a Data Table widget can be populated from a
database using Java Persistence API (JPA). This TOTD extends that entry and
explains how a selected row from the Data Table can be deleted from the
database. This entry is created based upon a requirement from Dave Briccetti at
Silicon Valley Code Camp 2007 last weekend.
The first part of the entry is also a re-write of...
The current Rails Gem (version 1.2.5) gives an error when
creating a Controller in a JRuby-on-Rails application on Windows. It gives the
following error during controller creation as shown below:
C:/testbed/ruby/jruby-1.0.1/lib/ruby/1.8/pathname.rb:420:in `realpath_rec': No such file or directory -C:/testbed/ruby/jruby-1.0.1/samples/rails/hello/C: (Errno::ENOENT)<br>  ...
Sun Microsystems is a gold sponsor
of Web 2 Summit (nee Web 2.0
Conference). Registration to this conference by invitation only. If
you are an attendee, here is one session that you don't want to
Betting on OpenSolaris for Success
In this session, Sun Chief OS Platform Strategist
Murdock, Joyent CTO
Hoffman and Director of Systems Ben Rockwood will...
previous entry, I posted instructions on how to setup Mongrel cluster
for JRuby-on-Rails applications on Unix-based systems. The instructions
specified there do not work on Windows-based systems because of the
JRuby 1.0.1 + (default) Rails Gem (version 1.2.4) does not work on
Windows because of
JRUBY-1401. An older Rails version (such as 1.2.3) can always be...
explains the steps to setup a Mongrel
cluster for JRuby-on-Rails applications
on a Unix flavor operating system. These instructions do NOT work on Windows. A
similar post for Windows is cooking and will be posted when ready.
and unzip the bundle (say JRUBY_HOME).
For convenience, include JRUBY_HOME/bin to
Install the required RubyGems
Are you an existing GlassFish V2
user and interested in using Rails applications ? -
JRuby module is
now available on the
Update Center. This module allows you to create standalone or
shared WAR of a Rails application that can be easily deployed on
GlassFish. Read the complete details
A screencast following these steps is available
A jMaki widget
expects data in JSON format as defined by the
models. There are three possible ways to generate the JSON data from a
Jersey endpoint that can be consumed by a jMaki widget:
Return JSON representation of a resource as generated using the
BadgerFish convention and then
apply a stylesheet (specified in xhp.json) to convert the
received data into the JSON format as...
Day 3 started with reminders about
RubyConf 2007 and
Euruko. Marcel and Koz (from
Rails core team) gave the
keynote talking about the best practices for Rails (theRailsWay.com).
Here are some of the tips they explained:
If a controller has more than 6 or 7 actions, and each action > 6-7
lines then there is something wrong. More details
Associations proxies are...
Day 2 started with regular announcements and keynote by DHH. The
demographic distribution of approximately 750 attendees was shown in the
filler slides right before the keynote:
The technical sessions and BoFs started today and the exhibit hall was opened
as well. Sun booth...
Arrived in Berlin 2 days ago for
Rails Conf Europe. Sun Microsystems
is a diamond sponsor and you can meet me at the "Rails
powered by jMaki and
GlassFish" booth in the
Exhibit Hall. You can read about overall Sun's presence
I realized in the morning that my Full Conference pass did not account for
any of the tutorials. And all of them were completely sold out with...
The support for Rails in
NetBeans IDE has improved considerably in the past few days.
Ludo have been
on ramping up the jMaki NetBeans module
as well. This screencast is an update to
#web2 and shows how the development experience for creating a jMaki-enabled
Rails application is drastically simplified.
The screencast shows how a
and Dojo DataTable widget can...
Jerome has been
working on GlassFish gem for
Rails. Read the interesting discussion on
dev@glassfish. This blog announces a technology preview of this gem and
describes the steps to try it out.
Download GlassFish Gem from
If you already have JRuby on Rails configured, then skip this step.
Otherwise you need to install JRuby on Rails.
Download and Unzip JRuby 1.0.1 from
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...
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...
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...
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...
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...
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...
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