Jeff Mesnil’s Weblog

Archive for May, 2007

JMX Scripts using JRuby — Part II

Thursday, May 31st, 2007

update: a more Ruby-esque version using Rails idioms by Aaron Batalion

update: updated Ruby script to use instanceeval and definemethod instead of eval based on a poignant explanation of eval-less metaprogramming.

In Part I, I created a JRuby script to manage a Java application using JMX.

In this entry, I’ll explain how to remove the dependency on the […]

Google Gears & Alchemy

Thursday, May 31st, 2007

Google just released Gears which is :

“an open source browser extension that enables web applications to provide offline functionality:

Store and serve application resources locally Store data locally in a fully-searchable relational database Run asynchronous Javascript to improve application responsiveness”.

At first glance, it […]

JMX Scripts with Eclipse Monkey

Wednesday, May 23rd, 2007

Continuing the series about “writing JMX scripts in a dynamic language”, after Ruby (part I & II), let’s do that in JavaScript.

Aside of the use of a different scripting language, this example differs completely from the Ruby one by its context of execution: it will be integrated into Eclipse and called directly from its user […]