WebSphere Commerce EnterpriseWebSphere Commerce Professional

Creating and configuring the LikeMinds Personalization Server

You must configure the LikeMinds Personalization Server in WebSphere Application Server.

About this task

Configuration is performed using a script that does the following tasks:
  1. Creating a LikeMinds utility server in WebSphere Application Server
  2. Creating a JDBC Provider for the utility server
  3. Creating a Likeminds datasource for the utility server
  4. Testing the LikeMinds datasource
  5. Installing the LikeMinds utility .ear file
  6. Configure the utilities to access the Likeminds datasource

Procedure

  1. Navigate to the following directory:
    • For IBM i OS operating systemSolarisLinuxAIX WC_profiledir/bin
    • Windows WC_profiledir\bin
  2. Launch the wsadmin shell using the following command:
    For IBM i OS operating systemSolarisLinuxAIX
    
    wsadmin.sh -f WC_installdir/bin/setupLikeMindsServer.jacl NodeName
        ServerName JDBCProviderName DbType 
        JDBCDriver DatasourceName DataBaseName
        DataBaseUser DataBasePassword EARPath 
        DataBaseServer DataBasePort
    
    Windows
    
    wsadmin.bat -f WC_installdir/bin/setupLikeMindsServer.jacl NodeName 
        ServerName JDBCProviderName DbType 
        JDBCDriver DatasourceName DataBaseName 
        DataBaseUser DataBasePassword EARPath 
        DataBaseServer DataBasePort
    
    where,
    NodeName
    The WebSphere Application Server node name.
    ServerName
    The name of the LikeMinds Personalization Server server to install in WebSphere Application Server.
    JDBCProviderName
    The name to assign to the JDBC provider to create in the LikeMinds Personalization Server
    DbType
    The type of database to use. This must be one of:
    • db2
    • db2_iseries_toolbox
    • db2_iseries_native
    • oracle
    JDBCDriver
    The fully qualified path of the JDBC driver.
    Note:
    1. Windows users must use forward slashes '/' to denote path structures, instead of backslashes '\'.
    2. If you have used the default quick install of WebSphere Commerce, the JDBC provider will be called, "demo - WebSphere Commerce JDBC Provider".
    DatasourceName
    The name to assign to the datasource.
    DataBaseName
    The name of the LikeMinds database.
    DataBaseUser
    The ID to use to connect to the LikeMinds database.
    DataBasePassword
    The password associated with the ID.
    EARPath
    The fully qualified path to the LikeMinds utility EAR.
    Note: Windows users must use forward slashes '/' to denote path structures, instead of backslashes '\'.
    DataBaseServer
    The name of the server on which the database resides.
    DataBasePort
    The port number used during database creation. If a port number was not used during database creation, a port number of 50000 should be used if the DbType is db2 or 1521 should be used if the DbType is oracle.
    DB2AIX
    WAS_installdir/profiles/demo/bin/
    
    ./wsadmin.sh -f /usr/WebSphere/CommerceServer70/bin/setupLikeMindsServer.jacl WC_demo_node WC_likeminds "LikeMinds JDBC Provider" 
    db2 /opt/IBM/db2/V9.5/java/db2jcc.jar "WCS LikeMinds Data Source" dbName dbUser dbPassword /usr/WebSphere/CommerceServer70/likeminds/utility/PZN_Utilities.ear databaseServername 50000
    
    WindowsOracle
    WAS_installdir/profiles/demo/bin/
    
    wsadmin.bat -f c:/WebSphere/CommerceServer70/bin/setupLikeMindsServer.jacl WC_demo_node WC_likeminds "LikeMinds JDBC Provider" 
    oracle "C:/oracle/product/11.1.0/db_1/jdbc/lib/ojdbc6.jar" lmDS dbName dbUser dbPassword "C:/WebSphere/CommerceServer70/likeminds/utility/PZN_Utilities.ear" DatabaseServername 1521 
    Note: If you encounter "cmdline buffer overflow" errors, copy the PZN_Utilities.ear file to a folder higher in the tree, such as /usr/PZN_Utilities.ear. Alternatively, define a variable for "/WebSphere/CommerceServer70", and use the variable in place of the full directory path. The goal is to reduce the string required to identify the path, which will correct the error.