Monday Jun 11, 2007

JRuby 1.0 final


The JRuby guys have announced the 1.0 release ([1], [2], [3]). Just like GlassFish v1 was laser-focused on Java EE 5 compatibility, JRuby 1.0 had Ruby 1.8 compatibility as the target. Charles' blog mentions performance as the next big priority which again sounds like a familiar goal for GlassFish v2.

JRuby on GlassFish brings you simpler deployment, access to an enormous amount of Java libraries (from JDBC/JPA to JAX-WS/WSIT) and a better availability story. Check entries by Arun for both GlassFish v2 ([1], [2], [3]) and v3 which is working on an even simpler deployment process. See also how people are running JRubyOnRails applications in GlassFish on MacOS X (JRuby setup and deployment to GlassFish).

Wednesday May 30, 2007

More WADL -- PHP, Ruby and Python Clients


More WADL news from Thomas: the latest version of REST Compile can generate clients in Ruby and Python in addition to the original PHP.

As before, the Web App is here (and the german version is here - no catalan yet :-]).

Since we are Wadling..., check Paul's comments on its benefits and the documentation on RESTful Web Services in SWDP r2 - which also supports WADL.

Saturday Mar 24, 2007

jRuby Servlets... in Phobos?

jRuby Logo

Phobos is more than just JavaScript on the Server-Side; it is also a complete framework for server-side scripting and it can be used with other scripting languages too through the benefits of JSR 233. This means you can write things like this Ruby fragment:

$response.contentType = 'text/plain'
writer = $response.writer
writer.println 'Hello, world!'

Roberto explains the mechanics in detail; including what WAR and JARs to use. The main focus of Phobos is still JavaScript, but let me know what you think...

Wednesday Feb 28, 2007

PHP and Ruby on Sun Web server

PHP Logo

Here are two recent entries showing how to use fastCGI to enable using Scripting Languages in the new Sun WebServer 7.0. First, check Natarajan detailed blog to learn how to use the new PHP AddOn. Then you can also check Seema and Marina's very detailed article to use Ruby on Rails.

All TheAquarium entries related to the Sun WebServer use the WebServer tag. For details on the Sun WebServer 7.0, check the Product Page and the SDN Developer page. The download is available here and the documentation here.

Wednesday Feb 21, 2007

Ruby on Rails on GlassFish and with an Embedded Derby

Derby Logo

Ashish is making Rails apps run well on GlassFish, and has been writing about it. His latest writeup describes how to take a RoR app, deploy it into GlassFish and have it use a Derby database embedded (the alternative is remote, where Derby runs in a separate process).

A few gotcha's, so check Ashish's blog for details if you are to do this.

Friday Feb 16, 2007

RoR as a WAR, Simplified Process

Rails on Wooden Sleepers

Continued improvement in how to deploy a Ruby on Rails Application into GlassFish as a WAR file. Ashish explains how to use jRuby-Extras so that you only need to say:

cp -R rails-integrations/plugins/war rails-app-dir/vendor/plugins/
rails-app-dir; rake war:standalone:create;

Check the details at Ashish's blog.

Wednesday Jan 17, 2007

Servlets in 4 languages with Sun's Web Server

Monty Python's - Something Completely Different

Rahul has an interesting series of detailed blogs that show how to use different JVM-based scripting languages to write Servlets on Sun's WebServer 7.0 (download) even when using plain J2SE 5 (this is easier in Java SE 6 through JSR 223). The series includes a prologue providing some common code for all the languages and then specific and very detailed entries for jRuby, jScheme, Rhyno and Sleep.

And, Now For Something Completely Different...

All these use the in-memory JVM from the WebServer, but... Rahul also shows how to use FastCGI to call native Ruby directly.

Tuesday Dec 26, 2006

Recent Developments at Ruby, jRuby, GlassFish and NetBeans

There is a lot happening in the GlassFish and NetBeans communities related to Ruby and Rails. Several of the developments have been presented at JavaPolis, read about it from Ludo, Jean-Francois, and Charles, and here is my recap and overview:

JRuby Logo

On the JRuby front, Tom, Charles, Ola, et al have Released JRuby 0.9.2 focusing on compatibility and basic performance (direct generation of bytecodes will come later), just presented two Talks at JavaPolis and you can also try directly the WebStart-enabled IRB console that Tom posted recently.

NetBeans Logo

On the NetBeans side, Tor et al have been making very good progress on adding Ruby support to NB 6.0 (Introduction, Update). The editing part uses jRuby underneath (that's should just be an internal dependency) but I need to find out more about what type of debugging is available under what conditions.

GlassFIsh v2 Logo

Finally, Ashish has a good series of blogs covering several of the ways to run a Rails app depending on how you package it, who handles the HTTP requests, and what runtime is used. First two blogs on how to use jRuby as the runtime inside GlassFish: first deploying a WAR and then how to Use Derby as the database. Then he shows how to use the GlassFish's CGI support and Ruby native first one Rails App and then Multiple Apps.

All this is pretty bleeding edge, but stay tuned. This is obviously an area of keen interest and usefulness, so expect continuous improvements over the next year.

Saturday Nov 18, 2006

(j)Ruby on Rails on GlassFish (and on Grizzly)

Ruby on Rails

Charles reports on the recent progress on Packaging and Deployment Options for (j)Ruby. Charles now has an all-in-one JAR that can then be run on the client and on the server side. On his part, TAKAI has been working on replacing the WEBbrick and has succeeded in using AsyncWeb with very substantial performance improvements, and then also on deploying directly on GlassFish.

All this looks very promising and I think will open many doors for Ruby in the enterprise - even this very early work is already mentioned in more mainstream blogs. Thanks to JeanFrancois for pointing to Grizzly's Role.

Thursday Nov 02, 2006

RoR and Blojsom and more Web 2.0 Apps on Sun Web Server

Rails Logo

Sun's WebServer 7.0 provides a Java Web Tier as well as good connectivity (NSAPI, Fast-CGI) with many non-Java applications. As an example of the former, Seema also shows how to run Blojsom, which follows from Blojsom on GlassFish, as did our previously reported Phobos on Web Server. As an example of the latter, Seema describes in detail how to Run Ruby On Rails.

All together, the Sun WebServer is a good Web 2.0 Platform, and it will get better as one will be able to run the latest Java Web Tier by Plugging the GlassFish Web Tier.

Tuesday May 02, 2006

The Rails Lesson, GlassFish and NetBeans

Rails Logo

Ruby on Rails certainly has triggered a lot of attention and it is raising the bar on ease of development for CRUD (or BREAD!). One can argue about maintenability or Greenfield but the experience of the first few minutes is undoubtable good, so I expect people to try to match or exceed it.

In a recent blog, Geertjan talks about CRUD in two blogs on The Best Feature in NB 5.5 [1] and [2], and Tim reflects on that at Rails Lesson. Let's see what else shows up at JavaOne...

PS. It is hard for TA to accuratedly track all the relevant activity in NetBeans-land, but one recent blog worth checking is this List of New Features in NB 5.5.

Tuesday Mar 07, 2006

JSF books and training course

Kito Mann

Kito Mann, author of "JavaServer Faces in Action" has developed a training course called "JSF in Action: JavaServer Faces (JSF) with Struts, Shale and Facelets". If you're in the UK and take the course let us know what you think.

Ed Burns who is working on a new book JavaServer Faces: The Complete Reference, has posted a couple of useful blogs. One that he posted a while ago Repost: Bringing Ruby on Rails's Flash to JSF. His other post, Repost: Using JAAS with JSF shows how JAAS can be used to provide authentication for JSF web applications.

Tuesday Jan 17, 2006

Bringing Ruby on Rails's Flash to JSF

RubyOnRails logo

Ruby on Rails is a very interesting web framework that is prompting renewed interest in how to improve programmers productivity. Ed has written on how to bring the flash concept into JSF, and he is exploring this further through his engineer's sandbox (check also the discussion on using JAAS with JSF). He is implementing the ideas in the GlassFish community, in a new jsf-extensions project.

Monday Jan 09, 2006

Java - Spring Chicken or Old Hen ?

Southpark James Gosling

James Gosling has been in the thick of the debate over how Java stacks up against some of the emerging server-side software technologies (dynamic scripting languages, LAMP, AJAX). In an interview with zdnet he's pretty frank about the role of Java, Ruby, PHP, LAMP, etc. and the importance of tools for developer productivity.

I particularly like (and agree) with what he says about Java EE (J2EE) :

You take things like J2EE (server software), it's become almost sort of the opposite of trendy, in the sense that it's totally mainstreamed, totally proven mission critical. It's very corporate, it has been really seriously battle tested, and for lots of folks it's become a completely safe bed (sic).

For people running businesses - "battle tested", "corporate", "mission critical" are the kind of adjectives you want to hear. That said Java (and Java EE) is still managing to pique the interests of the next generation of developer with innovative new features in the Java language and the Java EE platform - that's a major achievement - balancing the tension of the mainstream and the early adopter.

I'm fairly sure that Java still has a long way to go before it reaches its prime and it's encouraging to see that Java is still entering new markets and finding entirely new applications (Java sets the standard for future cable systems).