Chapter 4. Scripting in Spring

In this chapter, you will learn how to use scripting languages in Spring applications. Spring supports three different scripting languages: JRuby, Groovy, and BeanShell. They are the most popular scripting languages in the Java community, and most Java developers find these languages easy to learn.

JRuby (http://jruby.codehaus.org/) is an open source Java-based implementation of the popular Ruby programming language (http://www.ruby-lang.org/). JRuby supports two-way access between Java and Ruby, which means that you can call a Ruby script directly from a Java program and also access Java classes in a Ruby script.

Groovy (http://groovy.codehaus.org/) is a dynamic language for the Java platform that integrates the features ...

Get Spring Recipes, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.