Tuesday, November 25, 2008
Bean Scripting Framework with JRuby and Java
I just developed an excellent tutorial for calling JRuby from Java code. Using the Apache Bean Scripting Framework, scripts written in JRuby can be executed from within Java via some simple calls, and my tutorial explains how to install JRuby and BSF so you can do just that. It's a pretty powerful feature that's been around for a while, but never very well documented in an easy-for-beginners fashion. The feature is great, consider the implications for on-the-fly system patching for servers and applications that can't afford a restart, for game development, automated tasks, and much more.