The following steps enable java.net.
Enable Java Virtual Machine (VM).
sp_configure “enable java”, 1
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
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:
size of global fixed heap
size of process object heap
size of shared class heap
For more information on these parameters, see Chapter 5, “Configuration Parameters,” in the Sybase System Administration Guide.