Setting up java.net

The following steps enable java.net.

Stepsenabling jave.net

  1. Enable Java Virtual Machine (VM).

    sp_configure “enable java”, 1
    
  2. Specify the number of sockets you want to open (the default is 0). The number of sockets configuration parameter is dynamic; you need not restart Adaptive Server if you change the configuration option. For example, to open 10 sockets, enter

    sp_configure “number of java sockets”, 10
    
  3. Adjust the amount of memory available for the Java VM. Since you may be streaming large text documents in and out, you may need to increase the amount of memory available to the Java VM. The parameters you may need to adjust are:

For more information on these parameters, see Chapter 5, “Configuration Parameters,” in the Sybase System Administration Guide.