Java - D2000 settings
Usage of Java in the D2000 System is conditioned by the setting of key "UseJava" on the value "1" in D2000 Application Manager (D2SMC), parameter KERNEL of a particular application.
The D2000 System will generate the wrappers for the D2000 system objects and will allow the running of Java scripts in pictures and events. The parameter must be set on the computer, on which the process D2000 Server runs, in case of a redundant system on all the computers on 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 the 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 the functionality to the 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 conflicts in the application.
Separated classpath - cmd parameters
To set the separated classpath for the 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 paths by --JAVA-CP, you must insert these records into the 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