|Home > Apache Geronimo v3.0 > Documentation > Developing > Tutorials > Getting familiar with the development environment > Locating your application specific configuration files|
|Getting familiar with Geronimo Eclipse Plugin (GEP)||Getting familiar with the development environment||Quick Debugging JSPs of your application|
Many applications have configuration files that are intended to be customized by the user and need to be in an easily accessible location. Geronimo is designed so you can create an application specific configuration directory under the var directory for this purpose. There are several ways for your application to locate this directory and the files in it. If you deploy your application as a Geronimo plugin you can specify that the original of these files be unpacked from your application plugin when it is installed.
See also the discussion of the system and server locations relevant to running multiple instances from one installation.
There are three ways to locate files in a Geronimo installation. They all depend on the ServerInfo gbean which is intended to be the universal source of location information for the server.
You can specify a gbean-ref to ServerInfo in your geronimo plan:
Look it up in code:
The ServerInfo gbean sets up two system properties that indicate where the geronimo system and server is located.
Your program can use these to construct the location of your files:
You can include a SystemPropertiesGBean in your geronimo plan and set up application specific system properties that can then be used by your program:
It is also possible to to extend the classloader of your application to include a directory into which you can put your configuration files by including a SharedLib gbean in the geronimo plan for your application: