|
VCM API allows your application to access information from VCM. You will learn how to configure and test your application with API.
Access the information from VCM in your application will need add one of the 2 jars that have the VCM API: vgn-appsvcs-cda.jar and vgn-appsvcs-cma.jar.
7.3.0.x - VCM_DIR/V7/7.3/lib/sdk
7.3.1 and later - VCM_DIR/Content/VCM_VERSION/lib/sdk
In V7 VCM releases before 7.3, vgn-appsvcs-cma.jar and vgn-appsvcs-cda.jar were identical. In 7.3 they are different and are used for different purposes.
thirdparty-combined.jar: Contains classes for logging, XML processing, and other 3rd party utils.
vgn-appsvcs-cda.jar: Contains the Vignette classes for accessing your Vignette delivery stage . Use vgn-appsvcs-cda.jar when you are writing a content delivery application. This includes (most importantly) a delivery application that you are writing against the management stage.
vgn-appsvcs-cma.jar: Use vgn-appsvcs-cma.jar when you need to write extensions that run inside the VCM server or when you need to write Java code that directly manipulates VCM data on the management stage. For example, use the CMA jar when you need to update, insert, or delete content instances. Do NOT use the CMA jar if you are just retrieving data, as you would in a delivery application.
It will be necessary to copy the JDBC from your database. Choose the correct jdbc to your database. These files are localized into directory.
7.3.0.x - VCM_DIR/V7/7.3/jdbc
7.3.1 and later - VCM_DIR/Content/VCM_VERSION/jdbc
There are following jdbc files:
ojdbc14.jar: Oracle JDBC
vgnjdbc.jar: Vignette JDBC for DB2, Oracle, SQL Server, Sybase.
V7Test
V7test is a application what helps you test your application to access the VCM API. Download the v7test.zip from KB 6030 – “JSP application to test V7 delivery stage application server or servlet engine” (http://support.vignette.com/VOLSS/KB/View/1,,6030.html).
Deploy your application
Now, you can deploy your application. Choose your Application Server or Container JVM and edit the JVM parameters and add the following line, which has the vgncfg.properties, for example:
-Dcom.vignette.workingDir="\appl\vignetteWork\VCM\inst-viglet\cfgagent\vcm-viglet\cdsvcs\stage-Inter\cds-Inter\as\conf"
The VCM API will use com.vignette.workingDir parameter to find the as.cfg, that have information about VCM Delivery Stage.
Download the viglet-blank.war and copy the VCM API into /WEB-INF/lib and v7test to /v7test directory and deploy your application.
Discuta este artigo no fórum. (0 Mensagens)
|