Download WCM Java API Programmer`s Manual
Transcript
WCMJavaAPIProgrammersManual_en.book Page 34 Tuesday, May 16, 2006 6:12 PM
Chapter 2
jsse.jar
vipcore.jar
From the subdirectory \config\: the complete subdirectory
\resource\. This directory contains the properties files with the
messages and GUI texts of Livelink WCM Server required for
starting the Java program.
Create a directory on the local computer and copy the directory
structure \config\resource\ to this directory. In the class path of
the Java program, there must be a reference to the new directory.
Example
The following code sample is part of a simple remote API program:
package .....;
import com.sun.net.ssl.internal.ssl.Provider;
import java.security.Security;
import de.gauss.vip.api.admin.ContextHandler;
import de.gauss.vip.api.lang.ContextId;
import de.gauss.vip.api.VipRuntime;
public class RemoteTestClient
{
public static void main(String[] args)
{
System.out.println(" starting RemoteTestClient " );
try
{
RemoteTestClient test = new RemoteTestClient();
test.start( args); //arg[0]=hostname, arg[1]=servername,
//arg[2]=port, arg[3]=secure("true"/"false")
}
catch ( de.gauss.vip.api.exception.VipApiException vae )
{
vae.printStackTrace();
}
catch ( Throwable t )
{
t.printStackTrace();
34
Livelink WCM Server