Oracle GlassFish Server 3.0.1 Application Development Guide

Using a Custom File

To use a custom file, place the file in the domain-dir/lib/classes directory or JAR it and place it in the domain-dir/lib directory. This adds the custom file to the Common class loader. For more information about class loading, see Chapter 2, Class Loaders.

For each property found in more than one file, the Java EE naming service either uses the first value found or concatenates all of the values, whichever makes sense.