O'Reilly logo

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications by Mick Knutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java EE configuration with Groovy

In a Java project as seen in the section Integrating Groovy into Enterprise Applications in Chapter 5, Extending Enterprise Applications, you can use JVM scripting languages to augment the Java language. This is true for being able to utilize a JVM scripting language for configuration. In this scenario, the Groovy language allows you to pull in a Groovy script and treat it as configuration-based Objects in your Java application.

This solution allows for more descriptive configuration descriptors; it also enables configuration files to be unit tested and is easy to integrate into a Java / Java EE application. This solution gives you access to the features of the Groovy language, including automatic datatype mapping ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required