Java - D2000 settings

Usage of Java in D2000 System is conditioned by setting of key "UseJava" on the value "1" in D2000 Application Manager (D2SMC), parameter KERNEL of particular application.

Setting of parameter UseJava

D2000 System will generate the wrappers for D2000 system objects and will allow a running of Java scripts in pictures and events. The parameter must be set on the computer, which the process D2000 Server runs on, in case of redundant system on all the computers which the servers (they form a redundant group) run on.
The setting needs higher requirements on memory and processor.

You can set a key "ExcludeObjGen = " and mask (or more masks separated by semicolon) into the file \D2000\D2000.APP\<application>\java\java.properties. It defines the object which will not be generated to AppRunnable.java.

Example: This line filters the objects starting "hou" a "s" (i.e. the objects "Hour" and all pictures):

ExcludeObjGen = hou*;s.*

Separation of classpath for EVH processes


In standard configuration, the EVH processes of D2000 System use the common settings of classpath even if each EVH process has a unique JVM instance/runtime. In the event that it is necessary to dedicate a part of functionality to EVH process, which uses ESL scripts written in Java, it can be useful to separate the classpath for the particular EVH process. Separation is useful mainly if ESL scripts written in Java use different versions of the same Java library from the third part. In this case, the separation of classpath prevents the conflicts in the application.


Separated classpath - cmd parameters

To set the separated classpath for EVH process, enter these parameters:

--JAVA-NO-SHARED-CP
--JAVA-CP=X:\path\to\directory\or\java-library.jar

Parameter --JAVA-CP can be entered repeatedly.


Separated classpath - registry entries

Providing that you cannot enter all path by --JAVA-CP, you must insert these records into Windows registry.

HKEY_LOCAL_MACHINE\SOFTWARE\Ipesoft\<D2000_InstanceName>\cgf_<ApplicationName>\<EVH_NAME>.EVH\CommandlineArguments
"01"="--JAVA-NO-SHARED-CP"
"02"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\aes-wss-client.jar"
"03"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\wss4j-1.6.15.jar"
"04"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\cxf-2.7.11.jar"
"05"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\stax2-api-3.1.4.jar"
"06"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\woodstox-core-asl-4.2.1.jar"
"07"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\xmlsec-1.5.6.jar"
"08"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\commons-logging-1.1.1.jar"
"09"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\neethi-3.0.3.jar"
"10"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\commons-codec-1.9.jar"
"11"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\commons-collections-3.2.1.jar"
"12"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\wsdl4j-1.6.3.jar"
"13"="--JAVA-CP=d:\\D2000\\D2000_APP\\ROVE_OD\\java\\sAES\\cxf\\xmlschema-core-2.1.0.jar"

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .