Cisco Cisco Customer Voice Portal 8.0(1) Developer's Guide

Page of 122
Application End Classes
Application end classes are unlike most components in that they are not related to a call session.
Application end classes are instead associated with a particular application and are executed
when the application itself is taken down or updated. Currently, only the Java API can construct
code to run when an application starts.
An application can define in its application settings any number of application end classes.
VXML Server will execute the classes sequentially in the order they appear in the application’s
settings. By conforming to this order, a developer can create an application end class that stores
information that can then be referenced by subsequent end of application classes.
Unlike application start classes, an error in one application end class does not cancel the
application release, once started the application will be released no matter what occurs. Should
an error occur in an application end class, an error event will be thrown for any error loggers
to report.
There are four situations where the application end class is run:
The application server is shut down. VXML Server is configured to shut down all of its own
operations as well as shut down each individual application by running their application end
classes.
The VXML Server web application is restarted. Most application servers provide the ability
to restart just a certain web application running within it rather than restarting the entire
application server. The act of restarting the web application that defines VXML Server will
prompt it to initiate the application unloading process, including calling its application end
classes just like an application server restart.
An application is released after the VXML Server has started. Using the release administration
scripts, an application can be released while the system is actively handling calls to other
applications. VXML Server will first run all application end classes for the application and
then release it from memory.
Programming Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1)
73
 Chapter 11