The Application.cfc file defines application-wide settings and variables, and application event handlers:
When you create an application, you can set a number of application-wide properties and characteristics, including the following items:
This section describes the following topics:
For information on setting default variables, see Setting application default variables and constants in onApplicationStart.
Define the application and give it a name by setting the This.name variable in the Application.cfc initialization section, before the method definitions. By using a specific application name, you define a set of pages as part of the same logical application.
ColdFusion supports unnamed applications, which are useful for ColdFusion applications that must interoperate with JSP tags and servlets. Consider creating an unnamed application only if your ColdFusion pages must share Application or Session scope data with existing JSP pages and servlets. You cannot have more than one unnamed application on a server instance. For more information on using unnamed applications, see Sharing data between ColdFusion pages and JSP pages or servlets.