Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Manuel d'utilisateur Page 62

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 61
MMapSessionManager (Unix Only)
62 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Use the Legacy Servlets>Configure Global Servlet Attributes page in the Server
Manager interface.
In the Session Manager field specify:
com.iplanet.server.http.session.IWSSessionManager
You can also specify parameters for the session manager in the Session
Manager Args field, for example:
maxSessions=20,session-data-dir=/net/dotcom.com/sessions
Source Code for IWSSessionManager
The IWSSessionManager creates an IWSHttpSession object for each session. The
source files for
IWSSessionManager.java and IWSHttpSession.java are in the
server_root
/plugins/servlets/iws-apis/sessions directory. The source code
files for
IWSSessionManager.java and IWSHttpSession.java are provided so
you can use them as the starting point for defining your own session managers and
session objects.
IWSSessionManager extends IWSHttpSessionManager. The class file for
IWSHttpSessionManager is in the JAR file NSServletLayer.jar in the directory
server_root
/bin/https/jar. The IWSSessionManager implements all the methods
in
IWSHttpSessionManager that need to be implemented, so you can use
IWSSessionManager as an example of how to extend IWSHttpSessionManager.
When compiling your subclass of
IWSSessionManager or
IWSHttpSessionManager, be sure that the JAR file NSServletLayer.jar is in
your compiler’s classpath.
The
JdbcStore.java and FileStore.java source files and the source file for the
parent class,
SessionDataStore.java, are provided so you can modify the session
persistence mechanism of
IWSSessionManager. These files are also located in the
directory server_root
/plugins/servlets/iws-apis/sessions.
MMapSessionManager (Unix Only)
This is a persistent memory map (mmap) file based session manager that works in
both single process and multi-process mode.
The
MaxProcs directive in the magnus.conf file determines whether the server is
running in single process mode or multi-process mode. For more information, see
the NSAPI Programmer’s Guide for iPlanet Web Server.
Vue de la page 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 123 124

Commentaires sur ces manuels

Pas de commentaire