Enabling interim fix JR57179

Interim fix JR57179 enables you to use the indexload utility to load data from data sources for a different profile.

Before you begin

About this task

You only need this ifix if you are using indexload and want to load data from different data sources.

Procedure

  1. Create new data source in Search server.
    1. In the WebSphere Application Server Administration Console for Search server, expand Resources > JDBC > Data sources.
    2. Select Scope, for exampe: Cell=demo_search_cell, Node=demo_search_node, Server=solrServer.
    3. Create a new data source by following the wizard. Take note of the <JNDI name> you input.
    4. Test the connection for your new data source and ensure that it works.
    Note: You can look at an existing data source, for example "WebSphere Commerce Search DB2 DataSource demo" as reference.
  2. Create JNDI name space binding for the datasource.
    1. In the WebSphere Application Server Administration Console for Search server, expand Environment > Naming > Name space bindings.
    2. Select Scope, for exampe: Cell=demo_search_cell, Node=demo_search_node, Server=solrServer.
    3. Create a new name space binding, for example:
      name:   com.ibm.commerce.foundation.server.services.search.datasource-new
      value:   <JNDI name>
  3. Deploy the web.xml file under the Search server.
    1. Open the .war file <WC_installdir>\components\foundation\samples\SolrIndex\IndexLoad.war. Within IndexLoad.war, locate the file WEB-INF/web.xml, and copy it to a working directory.
    2. Deploy the web.xml on the Search server. Enter Search-IndexLoad.war\WEB-INF\web.xml in the field named Specify the path to the beginning with the installed application archive file to the file to be replaced or added. For more information on deploying individual ifix files, see Deploying J2EE assets for a single file.
  4. Update the wc-indexload-env-<profile>.xml file to use your new data source. Replace
    <_config:DataSource reference="com.ibm.commerce.foundation.server.services.search.datasource"/>
    with
    <_config:DataSource reference="com.ibm.commerce.foundation.server.services.search.datasource-new"/>
  5. Restart the Search server.