Friday Nov 16, 2007

How to Build the GlassFish v3 Gem

Photo of Cultured Diamonds

I just wrote a quick spotlight on Arun's Mephisto on the GlassFish v3 Gem earlier today and, coincidentally, Jerome just explained How to Build the GFv3 gem.

Some useful background links include Ruby Gems, GlassFish Gem for Rails, jRuby and NetBeans Ruby Pack.

Thursday Nov 15, 2007

Mephisto on GlassFish v3 Gem

Informational Sign

A tip from Arun:
Mephisto with GlassFish v3 Gem, building on Earlier Work (also see about Gems).

Friday Oct 12, 2007

Metro Web service endpoint, JRuby client - it works!

Information Icon

JRuby provides the power of Java and simplicity of Ruby language.

This tip explains how a Metro Web service endpoint can be invoked from JRuby.

Sunday Oct 07, 2007

GlassFish for Rails and Rails for GlassFish

JRuby on GlassFish

Are you a Rails developer and looking for a better development container ? - GlassFish Gem provides that option. You can use GlassFish V3, instead of WEBrick, for deploying your Rails application. Read the complete details here.

Are you an existing GlassFish V2 user and interested in using Rails ? - JRuby module on the Update Center allows to create WAR of a Rails application that can be easily deployed on GlassFish. Read the complete details here and watch the screencast.

Here are some useful entries (with numerous pointers on screencasts, blogs, tips & extensive feature sets) to get you started:

Friday Sep 21, 2007

JRuby for GlassFish v2 at Update Center

Informational Sign

Pramod has detailed instructions on the JRuby Updatecenter module for Glassfish V2.

Not as easy as GlassFish v3 Gem but runs on GlassFish v2.

Thursday Sep 20, 2007

Roller, jRubyOnRails, Phobos and Jersey in GlassFish Update Center

Radio Receiver Icon

Alexis is reporting on Several Additions to our Update Center Repository:

Apache Roller
Jersey
Phobos
jRoR

Check out the slide showing how easy it is to Install Roller on GFv2.

Tuesday Sep 18, 2007

Rails Conference Europe

Radio Receiver Icon

Rails Europe Conference Report from Arun. Covering GlassFish, jMaki, jRuby and NetBeans.

Day 1.
Day 2.

Saturday Sep 15, 2007

jRuby and GlassFish - From Mauritius

Mauritius from Satellite

Avinash has kind words to say about the significance of jRuby and GlassFish.

I always enjoy the global angle of blogging and it is special to see this post from Mauritius; some of you may be familiar with the island from Following the Equator, by Mark Twain (Project Guttenberg, Wikipedia):

"You gather the idea that Mauritius was made first and then heaven, and that heaven was copied after Mauritius"

Following the Equator was a Travelogue; i.e. and old-technology blog :-).

According to the Wikipedia, Mauritius seems a very interesting island. In addition to its beauty it is installing a coast-to-coast WiFi system, has the 2nd highest GDP per capita in Africa and it is gearing towards becomming a duty--free island.

Friday Sep 14, 2007

GlassFish Gem for Rails - GF v3 Starts Delivering

We have been improving how jRuby and GlassFish run together (entries) and Jerome now has a Ruby Gem that makes the process as simple as possible. Ruby Gems are the Ruby package mechanism, similar in spirit to RPMs or pkg(1) for Solaris, which enables very natural encapsulation of the functionality.

Ruby Logo

The result is:

Install jRuby
gem install rails
gem install glassfish
gem install whatever else you need
create your rails app
run your rails app! -- runs on GlassFish!

Can't get any simpler than that!

The GlassFish GEM is one of the first concrete deliveries from GlassFish v3; don't rush to go production on this :-), but the future is bright! See more details in Arun's writeup and in the Mail Thread.

Added: Also see the report by Charles.

Tuesday Sep 04, 2007

JRuby and GlassFish - Bridging the gap

Rails and Sun

In a recent interview, David Heinemeier Hansson (creator of Rails) talks about how JRuby bridges the gap between JavaEE and Rails. Here are couple of quotes ...

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 piece you can put in. But in some ways, it's sugar coating to get people to really come on board. It's a bridge for getting from one place to another.

On Sun promoting Rails ...

I think they recognize what developers want, they are recognizing there is great enthusiasm and passion for Ruby on Rails, and they don't want to miss out on that. To a large extent, they are following the passion, the excitement. ... I welcome Sun and IBM to come in and offer services.

Here are some useful entries (with numerous pointers on screencasts, blogs, tips & extensive feature sets) to get you started:

HowTo - Difference between Ruby Gem and Rails Plugin

Informational Sign

A tip from Arun:
Difference between Ruby Gem and Rails Plugin

Wednesday Aug 29, 2007

JRuby on Rails for the enterprise (with performance)

Sparky and JRuby

Recently voted Grizzly committer Naoto TAKAI had a presentation a couple of months ago at RubyKaigi2007. The slide deck is now available here.

It mentions Grizzly on Rails (see the "Ruby and jRuby, Mogrel, Goldspike, Grizzly and GlassFish" earlier post), GlassFish v3 and some interesting benchmark numbers against Mongrel, GoldSpike and WEBrick. With the appropriate underlying technology, JRuby on Rails seems to be ready for the enterprise performance-wise. Service providers would be a good judge too.

Monday Aug 20, 2007

Ruby and jRuby, Mogrel, Goldspike, Grizzly and GlassFish

Ruby Hack Day (see Arun's report) included a presentation by Nick Sieger on how to deploy Rails Application for production. The traditional (old?) arrangement (diagram) is to have the HTTP processing done via Mongrel and then use Mongrel_Cluster: one Rails per Mongrel, one Mongrel per (native) Ruby, each Ruby as an OS process. Nick showed 3 variants using jRuby instead of Ruby.

GlassFish-jRuby-GoldSpike

The first approach uses Mongrel_jCluster: one Rails per Mongrel, one Mongrel per jRuby, many jRuby per JVM.

In the second approach the Rails app is packaged as a WAR, the HTTP processing is done by GlassFish and then, via the Goldspike RailsServlet delivered to Rails instances.

In the third approach the requests are passed directly from the Grizzly layer to Rails.

Arun has a nice writeup capturing these options from where I stole the pictures. You may also want to check the Wiki pages on Ruby and GlassFish and on Ruby and NetBeans.

Thursday Aug 09, 2007

Getting Started with JRuby on GlassFish Screencast

JRuby in GlassFish logo

JRuby on GlassFish brings simpler deployment, access to an enormous amount of Java libraries (from JDBC/JPA to Metro) and a better availability story. NetBeans IDE provides a complete development environment for creating a JRuby application and creating the WAR file of Rails application that can be deployed on GlassFish.

A new screencast shows how NetBeans and GlassFish provide a great development and deployment platform for your Rails application. The video is divided in four fragments:

  • Create a "Hello World" Rails app
  • Deploy this app as WAR in GlassFish
  • In Rails app, read the greeting from MySQL database
  • Deploy this app as WAR in GlassFish

Friday Jul 27, 2007

Eat, Drink, and Learn

A Glass of Beer

It's a shame that engineers don't like free stuff. If they did, Sakthi's tip about the upcoming JRuby Hack Day would be perfect. Experts from Sun and Joyent will show how to develop and deploy JRuby applications on GlassFish (to get some impressive performance and scalability results [1, 2, 3]). A catered dinner and open bar will also be provided.

But I'm sure none of you would be interested in getting all of that for free. So you won't need details like the time (August 8), location (Axis Cafe in San Francisco), or registration page (hurry to guarantee your spot).

Like I said--it's a real shame. ;)