JWAVE Server Configuration

Installation Overview

Client-Side after JWAVE Installation

Figure 8-1 JWAVE client directory structure

Server-Side after JWAVE Installation

Figure 8-2 JWAVE server directory structure, where VNI_DIR is the main Visual Numerics installation directory. Other directories may exist, depending on installation options.

Additional Software Requirements

Running and Testing the JWAVE Server

Starting the JWAVE Manager


Windows Users: If the JWAVE Service has been installed and configured (see
Installing the JWAVE Service), open the Services window from the Control Panel, select JWAVE Service, then click Start to start the JWAVE Service).
(UNIX)cd VNI_DIR/jwave-3_0/binmanager start

(Windows)cd VNI_DIR\jwave-3_0\binmanager start

Testing to See If the JWAVE Manager is Running

Configuring the JWAVE Manager for HTTP Connections

  1. Start and "ping" the JWAVE Manager, as explained in the previous two sections.
  2. On the same host, but in a separate shell or command window, enter the following command to start the JWAVE Manager configuration tool.

NOTE: When the configuration tool starts, a dialog appears that informs you that you cannot save server connection parameters when the JWAVE Manager is running. Dismiss this dialog box. For this exercise, you will only change client connection parameters.
  1. Click the Client Connection Info button to view the Client Connection Info panel.
  2. In the JWave HTTP URL text field, enter the correct URL to the JWAVE server. By default, this URL is:
  1. Deselect the Use Socket Connection checkbox. We are going to connect to the JWAVE Web server through an HTTP connection.
  2. Select the Use HTTP Connection checkbox.
  3. Click the Save Configuration button, and then select File=Exit to exit the dialog box.
  4. Start a Web browser.
  5. Point the browser to the following URL:
  1. Try pointing your browser to the JWAVE demonstration area and running some of the demonstration JWAVE applets. The URL for the demonstration area is:

Setting Up the JWAVE Server

Using the JWAVE Manager


NOTE: Client applications cannot contact the JWAVE server unless the JWAVE Manager is running.

JWAVE Manager Startup Command Options

Shutting Down the JWAVE Manager


Windows Users: If you started a JWAVE Service through the Service's dialog box, use the Service's dialog box to shut it down instead of using the manager shutdown command.
SHUTDOWN was successful.

JWaveTcpipServer shutting down

JWaveHttpServer shutting down

JWaveManager shutting down

Shutting down all WaveSessions

[additional information on PV-WAVE sessions...]

Wave closed, releasing other resources...


TIP: Since manager shutdown can be executed from any machine that has client access (even across the Web), it is recommended that a password be set for the JWAVE server. Assignment of a password for shutdown will prevent accidental shutdown of the JWAVE Manager by unauthorized users. (The instructions for assigning a password for shutdown are given in Using the JWAVE Configuration Tool).

JWAVE Server Options

The Direct Socket Connection Option


NOTE: To configure the JWAVE Manager to accept both socket/CGI and HTTP connections, set both MANAGER_START_TCPIP and MANAGER_START_HTTP to TRUE.

The CGI Connection Method

Using the JWAVE Web Server

Using the JWAVE Servlet


TIP: Once you have installed the JWAVE Servlet, you can test the URL by pointing your Web browser there. For example, type

NOTE: Do not use the manager shutdown command with the JWAVE Servlet. Instead, use the Web server's servlet administration tools to shut down the server.

Configuring the JWAVE Manager

Configuration Files

Remaking the Configuration Files

  1. Shut down JWAVE Manager.
  2. Run the make_config script, as follows:
    (UNIX)cd VNI_DIR/jwave-3_0/binmanager shutdownmake_config VNI_DIR JAVA_BIN_DIR

    (Windows)cd VNI_DIR\jwave-3_0\binmanager shutdownmake_config VNI_DIR JAVA_BIN_DIR

  1. Restart the JWAVE manager:
    (UNIX)cd VNI_DIR/jwave-3_0/bin manager start

    (Windows)cd VNI_DIR\jwave-3_0\bin manager start


Windows Users: We recommend that you start and stop the JWAVE Manager using the JWAVE Service (
page 115).

Using the JWAVE Configuration Tool

Starting the JWAVE Configuration Tool

Manager Properties

Figure 8-3 Manager Properties in the JWAVE Configuration Tool

TIP: To get help for a specific parameter, select the parameter, then click Parameter Help. You can also refer to
JWAVE Manager Configuration Properties for an description of each property.

Modifying a Property

  1. Shut down the JWAVE Manager.
  2. Start the JWAVE Configuration Tool (described on page 124).
  3. If necessary, click Manager Properties to display the list of configuration parameters.
  4. Click the parameter you wish to change.
  5. Type the new value for the property in the Value field.
  6. Click Set or press Enter. The new value for the parameter appears in the = Value list.
  7. Choose Save Configuration to save your changes. The changes are saved in the jwave.cfg file.

Resetting a Single Property to Its Default

  1. Shut down the JWAVE Manager.
  2. Start the JWAVE Configuration Tool (described on page 124).
  3. If necessary, click Manager Properties to display the list of configuration parameters.
  4. Click the parameter you wish to set to its default value.
  5. Click Set to Default. A letter D appears next to the parameter in the Type list. The default value for the parameter appears in the = Value list
  6. Choose Save Configuration to save your changes. The changes are saved in the jwave.cfg file.

Adding Properties

  1. Shut down the JWAVE Manager.
  2. Start the JWAVE Configuration Tool (described on page 124).
  3. If necessary, click Manager Properties to display the list of configuration parameters.
  4. Click New Parameter. The Define New Parameter dialog box appears.
  5. Type the name for the new parameter in the Name field. For example: mydata
  6. Type the new parameter's definition in the Value field. For example: /user/data/mydata
  7. Click Set. The new parameter appears in the Parameter list of the Manager Properties window. U appears next to the parameter in the Type list.
  8. Click Save Configuration to save your changes. The changes are saved in the jwave.cfg file.

JWAVE Manager Configuration Properties


NOTE: Some properties (usually directories) can be referenced by name in other properties. For example, the default for the property WRAPPER_PATH is $JWAVE_DIR/lib/user and the property JWAVE_DIR is an "expandable" property. Such properties are marked with a $ in the descriptions that follow.

NOTE: The normal default for Web servers is port 80; however, you must be an administrator or super user to start a server on port numbers less than 1024.

NOTE: The port number must be 1024 for JWAVE Manager to be contacted via CGI (the Web).

Client Connection Info

Figure 8-4 Client Connection Info in the JWAVE Configuration Tool

NOTE: The https protocol uses the Secure Socket Layer (SSL) to connect to the server. If you specify https, both the client and server must support https. Most browsers and Web servers do support https; however, the Java Development Kit (JDK) does not. Therefore, if you save the client configuration with an https protocol, you will always receive a message that says "unable to test https".

TIP: The client checks the selections Use Socket Connection, Use HTTP Connection, and Use CGI Connection in the order they are listed: 1) Socket, 2) HTTP, 3) CGI. Normally, we recommend that you only choose one method. The client-side getConnection method is optimized to be faster for the initial connection if only one method is checked.

Installing the JWAVE Manager as a Service on Windows NT

Installing the JWAVE Service

  1. Log in with Administrator or Domain Administrator privilege levels.
  2. Type:

Configuring the JWAVE Service

  1. In the Control Panel, double-click the Services icon. The Services window appears (see Figure 8-5).
Figure 8-5 Windows NT Services window listing the JWAVE Service
  1. Select JWAVE Service.
  2. Click Startup... The Service window appears (see Figure 8-6).
Figure 8-6 Windows NT Service window for configuring the JWAVE Service
  1. In the Service window, set the Startup Type to Automatic. This causes the JWAVE Manager to run as a background process and keep running even when there are no interactively logged-in users.
  2. By default, the JWAVE Service runs under the Local System account which has no access to network resources. If you need the account that runs the JWAVE Service to have access to network resources (for example, if your JDK is installed on a network drive), change the default user to a user with more privileges.
  3. Click OK in the Service window to close it and accept your changes.
  4. Click Start in the Services window to start up the JWAVE Manager in the background.

Stopping the JWAVE Service

  1. In the Control Panel, double-click the Services icon. The Services window appears (see Figure 8-5).
  2. Select JWAVE Service.
  3. Click Stop.
  4. Click Close.

Monitoring the JWAVE Service

Starting and Stopping the JWAVE Service from the Command Line

Removing the JWAVE Service

  1. Log in with the same privileges used to install the Service on the JWAVE server, as explained in Installing the JWAVE Service.
  2. Stop the Service.
  3. Type:

Testing the JWAVE Server Installation

Scalar Data Test

Array Data Test

Return Mode Test

View Test

Figure 8-7 The View Test window showing the 2D plot.

Running JWAVE Demonstrations

Setting Up for JWAVE Client Development


NOTE: You must have access to the JWAVE server for JWAVE client applications to work properly.




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