Confitura-2011-torquebox-demo is a project mainly written in RUBY and JAVASCRIPT, it's free.
TorqueBox Confitura 2011 demo
Refer to TorqueBox: A Javaist's Tutorial on Messaging, Services and CDI in Ruby post for detailed instructions how to use this repository.