Install > Installing WebSphere Commerce feature packs > Enable features


Enable WebSphere Commerce foundation


Overview

The WebSphere Commerce foundation enablement script adds new services and updates existing services required to support feature pack features.

To support personalization in remote widgets and feeds, persistent sessions and personalization ID must be enabled. When you run the enablement script, the script checks the WebSphere Commerce configuration file for the current settings:


Procedure

  1. If WebSphere Commerce is managed by WAS ND, start the deployment manager and all node agents. Your cluster can also be started.

    If WebSphere Commerce is not managed by WAS ND (dmgr), start server1.

  2. Verify the test server is stopped and that Rational Application Developer is not running.

  3. Ensure that you have installed a WebSphere Commerce feature pack.

  4. Determine how you will deploy the search server:

  5. If you are using a staging server, run the stagingprop utility before proceeding with feature enablement.

    After stagingprop, check the STAGLOG database table and ensure all the records are marked as processed. That is, STAGLOG.STGPROCESSED=1. back up the STAGLOG table (export the table), then clean up the STAGLOG table (delete from STAGLOG).

  6. Log on with appropriate authority:

    • A non-root user.

    • A user ID that is a member of the Windows Administration group.

  7. Go to the following directory:

  8. As the WebSphere Commerce non-root user, increase the file handle limit...

    ulimit -n 8192
    

    Note: First issue the command as a root user; then rerun the command as a non-root user.

  9. Run the enablement script:

    • config_ant.bat -buildfile WC_INSTALL/components/common/xml/enableFeature.xml -DinstanceName=instance -DfeatureName=foundation -DdbUserPassword=db_password [-DdbaPassword=dba_password]

    • ./config_ant.sh -buildfile WC_INSTALL/components/common/xml/enableFeature.xml \
                      -DinstanceName=instance \
                      -DfeatureName=foundation \
                      -DdbUserPassword=db_password \
                     [-DdbaPassword=dba_password]
      

    • enableFeature.bat -DfeatureName=foundation [-DdbaPassword=dba_password]

    The search server is deployed when the foundation feature is enabled. To deploy the search server on a remote server, specify the parameter -DremoteSearchEngine=true.

    The dba_password is required only if you are enabling the feature on an Authoring server.

    If the script runs successfully:

    • The message BUILD SUCCESSFUL is displayed in the console and in...

      WC_INSTALL/instances/instance/logs/enablefoundation_timestamp.log

      For additonal info, see:

      WC_INSTALL/instances/instance/logs/enablefoundation_timestamp.log

    • The message enableFeature.bat completed is displayed in the command window.

      For additonal information, see:

      WCDE_INSTALL\logs\enableFeature.log

  10. If the server is configured with an LDAP server, restart your WebSphere Commerce Server after verifying a successful enablement.

  11. Republish the application:

    1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.

    2. Start the WebSphere Commerce Test Server. Some errors are displayed in the console, these errors can be safely ignored.

    3. In the Servers view, right-click the test server then click Publish.

    4. Wait for the application to finish publishing and to restart. Ensure that no errors are displayed.

    5. If you customized a previous version of Management Center, see Migrate Management Center to migrate those customization to the latest version Management Center.

  12. Verify that the application starts successfully.

    1. Access the following URL:

      http://hostname:8007/webapp/wcs/component/member/services/MemberServices

      The following page is displayed:

      {http://www.ibm.com/xmlns/prod/commerce/9/member}MemberServices
      Hi there, this is a Web service!
      

  13. If the server where you are installing the feature uses staging tools or is a staging server:

    Execute this step once, even if you enable and disable the feature multiple times.

    1. Back up the following base staging SQL files:

    2. Append the contents of...

      WC_INSTALL/components/component-services/schema/fep1/db_type/wcs.stage.trigger.component_name.sql

      ...to the end of...

      WC_INSTALL/schema/db_type/wcs.stage.trigger.sql

      ... where db_type is either db2 or oracle.

    3. Append the contents of...

      WC_INSTALL/components/component-services/schema/fep1/db_type/wcs.stage.trigger.component_name.drop.sql

      ...to the end of...

      WC_INSTALL/schema/db_type/wcs.droptrigger.sql

      ... where db_type is either db2 or oracle.

    4. Append the contents of...

      WCDE_INSTALL/components/component-services/schema/fep1/db_type/wcs.stage.trigger.component_name.sql

      ...to the end of...

      WCDE_INSTALL/schema/db_type/wcs.stage.trigger.sql

      ... where db_type is either db2 or oracle.

    5. Append the contents of...

      WCDE_INSTALL/components/component-services/schema/db_type/wcs.stage.trigger.component_name.drop.sql

      ...to the end of...

      WCDE_INSTALL/schema/db_type/wcs.droptrigger.sql

      ... where db_type is either db2 or oracle.

      Note: Staging is not supported in WebSphere Commerce Developer.

    6. After enabling the feature, STAGLOG records are captured in the staging server. Since the STAGLOG is cleaned, either mark all the new STAGLOG records as processed, or delete them.

  14. If you are using a staging server, run the stagingcopy utility.

    1. If you encounter problems with the staging copy complete the following steps:

      1. Change STMTHEAP to the maximum value:

        db2 update database configuration for db_schema using stmtheap 240000
        

      2. Change APPLHEAPZ to 3000:

        db2 update database configuration for db_schema using applheapsz 3000
        

      3. Disconnect all users from DB2.

      4. Stop and restart DB2.

      5. Run stagingcopy utility.


+

Search Tips   |   Advanced Search