Application Deployment > Deploying Projects as Dialog Designer Modules
|
|
 |
Deploying Projects as Dialog Designer Modules |
Note:
This section only applies to speech applications.
When creating a large and complex speech application, it is often a good idea to identify parts of the application that can be reused by other parts of the application. Reusable parts can be created as modules.
For example, in a banking application, a module might collect the account number of a caller and then write the account number to a variable. This module may be used by many different parts of the main application, including the parts devoted to checking accounts, savings accounts, mortgage accounts, and so on.
To deploy a Dialog Designer Speech Project as a reusable module:
- Open the Export wizard by performing one of the following actions:
- From the File menu, select Export...
- Right-click anywhere in the Navigator view, then select Export...
- Dialog Designer displays the Export wizard, Select page.
- From the Select an export destination list, select Export Dialog Designer Projects, and then click Next.
- Dialog Designer displays the Export Dialog Designer projects page.
- From the Available Projects list, select the project you want to export as a reusable module, and then click Next.
- Dialog Designer displays the Configure web applications descriptors page.
- Make any changes you need to on this page, and then click Next.
- Dialog Designer displays the Options page.
- Select the check box labeled: Deploy projects to the Dialog Designer reusable modules directory
- Dialog Designer displays a warning with notification that after the module is deployed to the reusable module directory, there will be both a reusable module and a speech project, each with the same name in the project workspace. To avoid potential conflicts between the speech project and the reusable module, close the speech project and move it out of the workspace. Then, if additional modifications need to be made to the speech project and it needs to be redeployed later, it can be moved back into the workspace.
- Even if the project is left in the workspace, be aware that the deployed reusable module, (available as a module node from the Call Flow Editor palette) and the project by the same name are in fact two different things.
- In the Deploy Project message box, click Yes.
- Click Finish.
- Dialog Designer deploys a copy of the speech project to the reusable modules directory and places a module item for the new module on the Call Flow Editor palette.
- This module can be used as a module node in speech applications.
Note:
The Export wizard also creates a copy of the WAR file at whatever location you
specified as the Destination Directory on the Export Dialog Designer projects
page. This WAR file is the file to deploy on the application server for use with the
parent application. If you do not deploy this to the application server along with
any other application project WAR files, the parent application will not be able to
find or use it.
Note:
If you are storing "custom object" (objects that you define) in session properties
and wish to pass them between to modules (Web applications), the code for the
objects must be in the <tomcat_home>/common/lib so that the class loader
works properly.
If that code is on <appname>/WEB-INF/lib then an object instantiated in
project A cannot be accessed on project B. By moving the implementation of the
class to the common lib and in turn the common class loader, the implementation
may be shared across Web applications.