USYS$UD5_PARAMS / USYS$MW1_PARAMS

The following table lists all user selectable USYS$UD5_PARAMS & USYS$MW1_PARAMS assignments.

WARNING:

If you have a USYS$UD5_PARAMS / USYS$MW1_PARAMS specified in both a local ASN file and the usys:usys.asn file, the settings in the usys:usys.asn file override the local assignment file.

All options can be specified in any case (eg:, NOPRA or noPRA or nopra).

Parameters are case sensitive, ie: temp \u\TEMP\ and temp \u\temp are different.

You can specify all options at run-time using the sql proc statement eg:

sql "@classpath y:\bizclass;h:\ud5","$ud5",

or set the parameters as follows:

USYS$UD5_PARAMS=return-type I

and/or

USYS$MW1_PARAMS=return-type I

or set the parameters as follows:

USYS$MW1_PARAMS=infile params.txt

Then in the file params.txt, a SINGLE line with all of the options, eg:

-classpath .;%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale;%JAVA_HOME%\jre\lib;%JAVA_HOME%\lib;d:\winnt4\usys72\MrchHre, -Xmx128m, -Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy, -Djms.home=%JMS_HOME%, -Djms.properties=%J2EE_HOME%\config\jms_client.properties, -Djava.security.policy==%J2EE_HOME%\lib\security\client.policy, -Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config, -Dcom.sun.enterprise.home=%J2EE_HOME% 

If you are calling java methods from Uniface activate proc statements, then you should set USYS$MW1_PARAMS. If you are using sql statements, then you should use USYS$UD5_PARAMS. If you are using both, set both in your ASN file, and set them to the same values.

UD5/MW1 driver options

OptionPossible
values
Description
SILENT To disable the version message when the driver is loaded. This cannot be disabled in the demo version.
NOSPLASH To disable the splash graphic when the driver is loaded. This cannot be disabled in the demo version.
-classpath
-cp
<directories and zip/jar files separated by ;>set search path for application classes and resources for the Java Virtual Machine.
This is case sensitive, and equivalent to the classpath parameter. If several classpath, -classpath and -cp settings are included, then the final one is the only one which shall be used.
See the following section (on "-D") for environment variables that will be replaced at run-time in the -classpath, or -cp strings.
-D<name>=<value>set a system property for the Java Virtual Machine.
This is only available for JRE 1.2 / 1.3 and higher, and is case sensitive.
The following environment variables will be replaced at run-time in the -D strings:
  • %JMS_HOME%
  • %J2EE_HOME%
  • %JAVA_HOME%
  • %CLASSPATH%
  • %J2EE_CLASSPATH%
-Xnon-standard optionsset a non-standard option for the Java Virtual Machine.
This is only available for JRE 1.2 / 1.3 and higher, and is case sensitive.
STATIC-METHODENABLE*,
DISABLE
The method that is called is defined as static.
CLASSPATHclasspathThis is the path that the Java Runtime Environment will search for the classes you activate.
METHODdefault-methodThe method name that will be assumed if no method name is specified. NOTE: if you class name contains any periods (.), then the last path of the class name may be mistaken for the method name. It is always better to specify the fully qualified class and method when activating a java method. The default is main
SIGNATUREjava-signatureThe signature for the default method (see above). Default is ([Ljava/lang/String;)V.
RETURN-TYPEjava-signatureThe signature for the java method return type when called from the sql proc statement or the SQL workbench. The default is V (i.e.: void)..
PARAM-SIGjava-signatureThe signature for the java method parameters when called from the sql proc statement or the SQL workbench. The default is Ljava/lang/String; (i.e.: String).. NOTE: All parameters must use the same type, it is not possible to specify different types for different parameters when called from sql.
$Revision: 1.9 $ $Date: 2011/02/28 02:56:32 $[go to top]