SQL/MX Guide to Stored Procedures in Java (G06.24+, H06.03+)

Getting Started
HP NonStop SQL/MX Guide to Stored Procedures in Java523727-004
2-5
Relinking the SQL/MX UDR Server on Systems
Running G-Series RVUs
If you have already set the class path of the JDBC/MX driver in the session, enter:
java JdbcMx -version
The command displays output similar to:
The JDBCMX information indicates the product version of the JDBC/MX driver that is
installed on the system in the specified location.
Compare the output of the command with the product version in the README or
SOFTDOC file of the JDBC/MX driver. If you have an incompatible product version of
JDBC/MX, obtain the correct version of the product and follow the installation
instructions in the README file on the NonStop Server for Java product CD. See also
Using SPJ-Incompatible Versions in the Java Environment on page 2-2.
For version compatibility, see Table 2-1 on page 2-2.
Relinking the SQL/MX UDR Server on Systems
Running G-Series RVUs
The SQL/MX UDR server links statically to the NonStop Server for Java and JDBC/MX
driver on systems running G-series RVUs. Whenever you install a different product
version of NonStop Server for Java or a new JDBC/MX driver, you must relink the
SQL/MX UDR server by using the mxudrlink script. See Using the mxudrlink Script
to Relink MXUDR on page 2-6.
You can also use the mxudrlink script to link the SQL/MX UDR server to your own
Java Native Interface (JNI) objects, enabling you to invoke native methods in the
SQL/MX UDR server.
When you run the mxudrlink script, it invokes a makefile, mxudr.mak, which
produces a new executable of the SQL/MX UDR server, MXUDR. The mxudr.mak file
accepts parameters passed by the mxudrlink script and relinks MXUDR by using the
TNS/R native object file utility (nld). The makefile links these files:
Shared run-time libraries (SRLs) specified by the mxudr.oby file
mxudr.tlo library
NonStop Server for Java object and library files:
°
java.o
°
libjdk.lib
°
libjvm.lib
°
libspt.lib
HP JDBC driver for NonStop(TM) SQL/MX Version
T1225V31_08APR2004_JDBCMX_20040326
Note. The NonStop Server for Java and JDBC/MX driver must be installed properly on your
system, and the Java environment must be relinked, before you can relink the SQL/MX UDR
server. For more information, see the README file on the product CD.