WebSphere Application Server Network Deployment, Version 6.1
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Configuring for database session persistence

You can configure a database to collect session data for database session persistence.

About this task

To configure the session management facility for database session persistence, complete the following steps.

Procedure

  1. Create and configure a JDBC provider.
  2. Create a data source pointing to a database.

    Use the JDBC provider that you defined: Resources > JDBC > JDBC Providers > JDBC_provider > Data Sources > New. The data source should be non-JTA, for example, non-XA enabled. Note the JNDI name of the data source.

    [AIX HP-UX Linux Solaris Windows] [i5/OS] Point to an existing database.

    [z/OS] Point to the z/OS DB2 database containing the DB2 table for session persistence.

    [z/OS] Example configuration for session persistence:
    Name Sessions
    JNDI Name jdbc/sessions
    Container managed persistence Selected
    Component-managed Authentication Alias CELL/jaasalias
    Container-managed Authentication Alias CELL/jaasalias
  3. Verify that the correct database is listed under Resources > JDBC Providers > JDBC_provider > Data Sources > datasource_name. If necessary, contact your database administrator to verify the correct database name.
    [z/OS] For example:
    Database Name LOC1 (specify your system)
  4. [z/OS] Create a DB2 table in the z/OS DB2 database that will be used for session persistence.
  5. [z/OS] Configure the DB2 table for session persistence.
  6. Go to the appropriate level of Session Management.
  7. Under Additional Properties, click Distributed Environment Settings
  8. Select and click Database. The database user ID and password are case-sensitive.
  9. Specify the Data Source JNDI name from a previous step.
  10. Specify the database user ID and password for accessing the database. When you created your data source, you might have specified a Container Managed Authentication Alias or a Component Managed Authentication Alias; however, these two settings are not used by the session manager for session persistence. The session manager uses the userId and password specified in this step for session persistence.
  11. [z/OS] [i5/OS] Optional: Append the schema name in the session User ID field if you want to have more than one instance of the session table. The session manager uses the schema name to qualify the session table name for all database operations. If only the userid is specified without the schema name, the schema name defaults to NULL and therefore a table name with NULL as the schema name, for example, NULL.SESSIONS, is created. You can pass the create multiple session tables with different schema names, other than NULL, and access them separately by modifying the user name to contain the appropriate schema name. Use the following format to pass the schema name: userid::schemaName.
  12. [AIX HP-UX Linux Solaris Windows] [i5/OS] Retype the password for confirmation.
  13. [AIX HP-UX Linux Solaris Windows] [i5/OS] Configure a table space and page sizes for DB2 session databases.
  14. Switch to a multirow schema.
  15. Click OK.
  16. If you want to change the tuning parameters, click Custom Tuning Parameters under Additional properties and select a setting or customize a setting.
  17. Click Apply.
  18. Click Save.



In this information ...


Related concepts
Related reference

IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Feb 25, 2009 9:32:38 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/tprs_cnfp.html