NonStop Server for Java 4.2 Programmer's Reference
On TNS/E systems, you must set the _RLD_LIB_PATH environment variable to point the location of the
user DLLs.
export _RLD_LIB_PATH=dll-path[:dll_pathn]...
where: dll-path and dll-pathn are the directories where the user DLLs reside.
For example, if the user DLLs are in the directory /home/mydll
export _RLD_LIB_PATH=/home/mydll
●
Multithreaded native C or C++ routines must use the same Pthread library that the JVM uses, but HP
recommends that any multithreaded code be written in Java.
●
If native C or C++ routines must invoke Transaction Management Facility (TMF) calls, you must use TMF
transaction jacket routines as described in the Open System Services Programmer's Guide in the
"Application Programming With Standard POSIX Threads" section under the topic "TMF Transaction
Jacket Routines." The calls are:
SPT_ABORTTRANSACTION()
❍
SPT_BEGINTRANSACTION()❍
SPT_ENDTRANSACTION()❍
SPT_RESUMETRANSACTION()
Note: The Open System Services Programmer's Guide says that the maximum concurrent
transactions allowed in a process is 100; however, the JVM is an exception where the
maximum allowed is 1000 as described under Controlling Maximum Concurrent
Transactions.
❍
●
When calling a C or C++ routine, where the function passes or returns parameters of type float or
double, NonStop Server for Java 4 performs no conversion. All float and double values remain in IEEE
floating-point format when crossing the JNI boundary. For more information, see IEEE Floating-Point
Implementation.
●
When using the JNI_OnLoad function, the format you use depends on the system type:
On TNS/R systems, you must use the following name:
JNI_OnLoad_libname
where libname is the name of the library that your program passed to the
System.loadLibrary function.
❍
On TNS/E systems, use:❍
JNI_OnLoad
●
The JNI_OnUnload function is not supported by NonStop Server for Java 4 (TNS/R only).●
When naming library files, observe the following rules:
Do not use names that begin with Tandem, tandem, or tdm.●
On TNS/R systems, you can create libraries as an archive file whose name ends in .a or a relinkable
library file whose name ends in .lib. HP recommends using a relinkable file.
●
On TNS/R systems, do not use the same file name for more than one archive file, even if the two archive
files are in different directories. This naming restriction does not apply to relinkable library files.
●
On TNS/R systems, the library name that you pass to the System.loadLibrary method does not matter●