Reality Interface Classes

com.northgateis.comms.dda
Class SNI

java.lang.Object
 |
 +--com.northgateis.comms.dda.DDATcp
        |
 +--com.northgateis.comms.dda.SNI

public class SNI
extends DDATcp

Get DDATcp connection parameters from winsni.ini file.

This class caches the winsni.ini file, hence any changes to this file will not be noticed until the JRE is restarted.

Note that this class requires the path to the winsni.ini file. This should be defined by the windows.path property. This property can either be set on the command line using -D, or it can be set in the reality.properties file which must be located in the class path.

When using an SNI entry the base session ID in the PLID can be set by defining the BaseSessionIDJava property in the Options section of winsni.ini


Fields inherited from class com.northgateis.comms.dda.DDATcp
DEFAULT_PORT
 
Constructor Summary
SNI(java.lang.String section, java.lang.String user, java.lang.String account, java.lang.String server)
          Define a new DDA TCP connection using a winsni.ini file entry.
 
Methods inherited from class com.northgateis.comms.dda.DDATcp
connect, dataAvailable, debug, disconnect, receive, send, setServer, setTimeout
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SNI

public SNI(java.lang.String section,
 java.lang.String user,
 java.lang.String account,
 java.lang.String server)
 throws java.io.IOException
Define a new DDA TCP connection using a winsni.ini file entry.
Parameters:
section - String specifying the winsni.ini section name.
user - String specifying the user-id used to connect to the database, with an optional comma separated password
account - String specifying the account used to connect to the database, with an optional comma separated password
server - String specifying server to run

Reality Interface Classes

Copyright (c) 2000 NEC Software Services (UK) Limited