NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)

Contents | Index | Glossary | Prev | Next
Scalable TCP/IP (SIP)
Scalable TCP/IP (SIP) for Compaq NonStop
TM
Server for Java
TM
provides a transparent way to give the Compaq
NonStop
TM
fundamentals of scalability and persistence to a network server (SIP server) written in Java. Existing
servers written in Java and their clients can take advantage of SIP without being changed.
SIP provides a distributor and tools. The distributor and the SIP server run in Compaq NonStop
TM
TS/MP server
classes. Running under TS/MP gives SIP the manageability, strengths, and benefits of the Compaq NonStop
TM
Himalaya system.
The Pathway monitor process (PATHMON) process does the following:
Starts and manages the server classes
Distributes the SIP server processes across processors in the Himalaya system
Balances the client requests
This subsection explains the following subjects:
SIP servers
SIP distributor
SIP tools
Examples
SIP Servers
A SIP server is any Java program that uses the accept method in the java.net.ServerSocket class. A SIP
server usually has code that does the following:
Constructs a ServerSocket to listen for connections on a specified port
Invokes the accept method on the ServerSocket to accept the connection request
To use SIP, configure the network server as a SIP server. A Java network server can be configured as a SIP server if:
The SIP server uses the accept method in the java.net.ServerSocket class.
The intended use of the SIP server is to communicate with a client until the client's request is fully processed.
After the communication has terminated, the SIP server closes the socket that was used to communicate with
the server.
Do not configure a Java application as a SIP server if the application retains the client state after the client
disconnects from the server, because the SIP distributor cannot guarantee that the client will reconnect to the
same SIP server process.
To configure a Java application as a SIP server, you must configure the server as a Pathway server class. You can
configure a Java application as a Pathway server class using the browser interface of the configuration tool. See the
example configuration files in /usr/tandem/java/demo/sip.
A program can have several types of SIP servers, with each type peforming a different service. In this case, each type
of SIP server runs in a different server class. SIP Servers that perform different tasks can be configured in the same
application.