Cisco Cisco Unified Customer Voice Portal 11.0(1) Developer's Guide

Page of 79
C
HAPTER 
2:
 
C
ISCO 
CVP
 
V
OICE
XML
 API Introduction
   
C
ISCO 
CVP V
OICE
XML 3.1
 
 
  
Programmer 
Guide 
 
CVP VoiceXML Studio Deployment 
CVP VoiceXML Studio provides a location to place components that are to be shared across all 
applications: 
Studio/eclipse/plugins/com.audium.studio.common
. Individual classes are 
placed in the  
classes
 subdirectory and JAR file archives are placed in the 
lib
 subdirectory. 
Note that the only classes that need to be placed here are custom configurable elements and Say 
It Smart plugins since all other components have no CVP VoiceXML Studio interface and hence 
require deployment only on the Server. Once deployed in this folder, custom configurable 
elements will appear in the element pane directly under the “Elements” folder alongside with 
CVP VoiceXML-provided elements. 
For component classes that apply to a specific application only, a developer uses the 
deploy/java
 directory found in that application’s project folder. Within Studio, compiled 
classes and/or JAR files can be dragged from outside Studio to the appropriate subdirectory in 
the 
deploy/java
 folder. An alternative method that does not require Studio to be running would 
be to copy the files into the appropriate subdirectory of the 
deploy/java
 folder using the file 
system. The application project folder can be found in 
Studio/eclipse/workspace
 and the 
deploy/java
 folder within the application will appear here exactly as it appears in the Studio 
application project window. This can also be done while Studio is running, though to view the 
copied files in Studio, the 
deploy
 folder should be selected and the Refresh option chosen from 
the contextual menu.  
Custom configurable elements placed in the 
deploy/java
 directory will appear in CVP 
VoiceXML Studio’s element pane under the folder named “Local Elements”. The call flow 
editor for that application must be closed and reopened in order for newly copied local elements 
to appear in the element pane. 
When the application is deployed from within Studio, the Server folder created for that 
application will contain a folder named 
java
 whose contents is identical to the 
deploy/java
 
folder in the Studio project. 
CVP VoiceXML Server Deployment 
When an application is deployed through CVP VoiceXML Studio, a folder is created that 
encapsulates all the information for that application, including all Java code the developer placed 
in the Studio project as per the instructions given in the previous section. If the application is to 
change in any way, from changes to the call flow, to the addition or subtraction of required Java 
files, those changes must be done through Studio and then redeployed to the Server. 
One deployment requirement that must be performed by the developer is to ensure that the Java 
components and utility libraries stored in the 
Studio/eclipse/plugins/com.audium.studio.common
 folder are also placed in the Server 
common
 folder. When an application is deployed from Studio, only that application’s files are 
created, any common code is not included. As a result, it is the developer’s responsibility that the 
contents of the common folders in Studio and the Server are identical. 
 
 
Copyright 2001 - 2005 Audium Corporation.  All Rights Reserved. 10/05
 
13