
IWSSessionManager
60 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
• provider - the JDBC driver (the default is sun.jdbc.odbc.JdbcOdbcDriver).
For more information about the JDBC API, see the following web site:
http://java.sun.com/products/jdbc/index.html
• url - the data source (the default is jdbc:odbc:LocalServer).
•
table - name of the SQL table that store sessions (the default is sessions).
•
username - the login username for the database.
•
password - the login password for the database.
•
reaperActive - tells the session manager whether to run session reaper to
remove expired sessions from the database when
true, which is the default
value. It is recommended that only one server in the cluster be running the
reaper.
•
accessTimeColumn - the name of the column that holds the last access time in
minutes (the default name is
AccessTime). The SQL type is NUMERIC(9).
•
timeOutColumn - the name of the column that holds the session timeout in
minutes (the default name is
TimeOut). The SQL type is NUMERIC(9).
•
sessionIdColumn - the name of the column that holds the session ID (the
default name is
SessionID). The SQL type is VARCHAR(100).
•
valueColumn - the name of the column that holds the session object (the
default name is
Value). The SQL type is VARBINARY(4096). This column must
be large enough to accommodate all your session data.
Each type of operation on the database that handles session information (looking
up, inserting, updating, and deleting) is performed by a corresponding dedicated
connection. Each of these connections has a precompiled SQL statement for higher
performance. The following parameters allow you to customize the number of
dedicated connections that perform each of the operations.
•
lookupPool - the number of connections that perform lookup operations (the
default is 4 connections).
NOTE The
JdbcStore class does not recognize JDBC driver classes
assigned to the
classpath attribute of the class-loader element
in
web-apps.xml. Assign them to the jvm.classpath variable in
the
jvm12.conf file instead. For more information, see Appendix C,
“JVM Configuration.”
Commentaires sur ces manuels