JWAVE Client Development

JWAVE Client Overview

Figure 3-1 Parameters and data are passed between the Java client and the JWAVE wrapper. Java methods and special PV-WAVE functions are used to package and extract the data and parameters.

NOTE: This chapter does not cover the topic of data proxies, which allow data stored on the server to be referenced by the client. Proxies permit the efficient management of data and of client resources. For detailed information on proxies, see
Chapter 6, Managing Data.

The JWaveExecute Class


TIP: After construction, you can call a different JWAVE wrapper function, if desired, using the method setFunction.

Passing Parameters from the Client


NOTE: Parameter names are not case sensitive; they must begin with a letter, and can contain only letters, digits, and underscores.
· numeric Objects (standard subclasses of Number, such as Integer), except Long

· String

· numeric Objects (such as Integer)

· numeric primitives (such as int), except long

· String

Getting Data Back from the Server


TIP: For debugging purposes, the following command can be useful:

Casting Returned Data

Example 3-1 Array handling

The Exception Classes

Managing the Server Connection

Compressing Data

Ending a JWAVE Session

Using Multiple Clients

Using Ping Methods


TIP: If you use startSessionPinger in all of your JWAVE applications, then your JWAVE Server administrator can reduce the SESSION_IDLE_TIMEOUT setting, so that idle processes can be cleaned up more often.

Example: Passing an Array

Figure 3-2 Data is passed from client to server, and the server returns a data object, which is then printed by the client.
Example 3-2 Client application passes an array to the server, retrieves a result, and prints it
Example 3-3 JWAVE wrapper function receives the array, changes it, and returns it to the client

A Note About Data Proxies

Using the JWAVE Javadoc Reference

Summary





Copyright © 1999, Visual Numerics, Inc. All rights reserved.