InfoCenter Home >
6: Administer applications >
6.6: Tools and resources quick reference >
6.6.12: Configuring user profile support

6.6.12: Configuring user profile support

When configuring the User Profile Manager, the administrator can specify:

  • A user ID and password for accessing the user profile database and table

  • The "data wrapper" class that implements user profile support

  • The data source for storing user profile data in a table

  • The enterprise bean classes for accessing user profiles

  • Whether to enable user profiles at this time

The User Profile Manager settings require significant understanding of the classes that implement user profile support, particularly if the implementation involves enterprise beans.

To configure a user profile, follow these steps:

  1. Develop a servlet that accesses the User Profile Manager API.
  2. Create an enterprise application that uses the user profile implementation beans. (These beans can be found in installation_root/lib/userprofile.jar.) Use the same JNDI datasource name for both UP_ReadOnly and UP_ReadWrite. Make a note of the JNDI datasource name, because you must also specify this in userprofile.xml (step 4).
  3. Deploy the enterprise application in the application server.
  4. To installation_root/properties, add a file named userprofile.xml in the following format. Specify enterprise bean class names; data wrapper class name; and JNDI names for the read-only bean, read/write bean, and datasource (from step 2). You must also add user ID and password information for the JNDI datasource. An example of userprofile.xml follows:
    <?xml version="1.0"?>
    
    <userprofile>
    <userprofile-enabled>true</userprofile-enabled>
    <userprofile-wrapper-class>
    <classname>
    com.ibm.servlet.personalization.userprofile.UserProfile
    </classname>
    </userprofile-wrapper-class>
    <userprofile-manager-name>
    User Profile Manager
    </userprofile-manager-name>
    <userprofile-bean>
    <readonly-interface>
    com.ibm.servlet.personalization.userprofile.UP_ReadOnly
    </readonly-interface>
    <readwrite-interface>
    com.ibm.servlet.personalization.userprofile.UP_ReadWrite
    </readwrite-interface>
    <readonlyhome-interface>
    com.ibm.servlet.personalization.userprofile.UP_ReadOnlyHome
    </readonlyhome-interface>
    <readwritehome-interface>
    com.ibm.servlet.personalization.userprofile.UP_ReadWriteHome
    </readwritehome-interface>
    <readonly-JNDI-lookupName>UP_ReadOnlyHome</readonly-JNDI-lookupName>                                <readwrite-JNDI-lookupName>UP_ReadWriteHome</readwrite-JNDI-lookupName>
    </userprofile-bean>
    
    <userprofile-store>
    <database-userid></database-userid>
    <database-password></database-password>
    <database-datasource></database-datasource>
    </userprofile-store>
    
    </userprofile>
    
  5. Start the enterprise application.
Go to previous article: Procedure for configuring persistent session support Go to next article: Administering transports (overview)

 

 
Go to previous article: Procedure for configuring persistent session support Go to next article: Administering transports (overview)