Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Uživatelský manuál Strana 67

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 66
Deprecated Session Managers
Chapter 6 Session Managers 67
This sample JDBC session manager is not written, tested, or intended for
production use. It is provided so that you can customize its behavior to suit your
own needs.
JdbcSessionManager has been tested with a standard JDBC-ODBC driver against
Microsoft SQL Server 7.0SP1. You must set up the ODBC source, database, and
table for the session manager to use. It is recommended that the Session ID column
be indexed for higher lookup performance.
Parameters
JdbcSessionManager takes the following parameters:
timeOut - the amount of time in seconds after a session is accessed by the client
before the session manager destroys it. Those sessions that haven’t been
accessed for at least
timeOut seconds are destroyed by the reaper method. The
default value is 1800 (30 minutes).
If
session-timeout is specified in web.xml, it overrides this timeOut
parameter value. For details, see “session-timeout,” on page 15.
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.
NOTE The
JDBCSessionManager is deprecated and is included for
backward compatibility only. Use
IWSSessionManager with
JdbcStore session persistence instead.
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.”
Zobrazit stránku 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 123 124

Komentáře k této Příručce

Žádné komentáře