Sun Java System Web Server 7.0 Update 4 Developer's Guide to Java Web Applications

Enabling IWS60

You can enable IWS60 to change its default parameters. You can also enable IWS60 for a particular context if the server is running in single-process mode. To do so, edit the sun-web.xml file for the web application as in the following example. The persistence-type must be set to s1ws60.

<sun-web-app>
   ...
   <session-config>
    <session-manager persistence-type=”s1ws60”>
     <manager-properties>
      <property name=”classname” value=”com.iplanet.server.http.
                                       session.IWSSessionManager”/>
      // other manager-related properties
     </manager-properties>
    </session-manager> 
     ...
   </session-config>
   ...
</sun-web-app>

In the case of persistent sessions:

<sun-web-app>
		...
		<session-config/>
		 <session-manager persistence-type=”s1ws60”>
		  <manager-properties>
		   <property name=”classname” value=”com.iplanet.server.http.
                                       session.IWSSessionManager”/>
   	// other manager-related properties
    </manager-properties>
    <store-properties>
     <property name=”classname” value=”com.iplanet.server.http.
                                               session.FileStore”/>
     <property name=”directory” value=”<directory name to store the_
persistant_sessions>”/>
       // other store-related properties
     </store-properties>
    </session-manager> 
   	  ...
   </session-config>
  	 ...
		</sun-web-app>

For more information about the sun-web.xml file, see Chapter 9, Deploying Web Applications.