SQL/MX 3.2 Guide to Stored Procedures in Java (H06.25+, J06.14+)
Managing SPJs in NonStop SQL/MX
HP NonStop SQL/MX Release 3.2 Guide to Stored Procedures in Java—691166-001
6-23
Distributing Application Classes
Advantages of Specifying the Node
The Java classes exist in only one location, which eliminates the need to maintain
them on separate nodes.
Disadvantages of Specifying the Node
By using this approach, you sacrifice local node autonomy. For example, applications
running on \NODEB rely on the Java class stored on \NODEA to function properly. If
\NODEB becomes disconnected from \NODEA, an application on \NODEB that calls the
SPJ on \NODEA will not work.
This approach also involves the overhead of loading Java classes from a remote node
instead of from the local node.
Distributing Application Classes
If an SPJ method in a distributed database environment relies on application classes
outside the external path, you must either copy these classes to the same OSS
directory on the remote node or include the full path of these classes in the class path.
For more information about how to set the class path, see Setting the Class Path on
page 2-18.










