Interim fix JR57179 enables you to use the indexload utility to load
data from data sources for a different profile.
Before you begin
For information about
how to install an interim fix, see
About this task
You only need this ifix if you are using indexload and want to load data from
different data sources.
Procedure
-
Create new data source in Search server.
-
In the WebSphere Application Server Administration Console for Search server, expand .
-
Select Scope, for exampe:
Cell=demo_search_cell, Node=demo_search_node,
Server=solrServer
.
-
Create a new data source by following the wizard. Take note of the
<JNDI
name>
you input.
-
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.
-
Create JNDI name space binding for the datasource.
-
In the WebSphere Application Server Administration Console for Search server, expand .
-
Select Scope, for exampe:
Cell=demo_search_cell, Node=demo_search_node,
Server=solrServer
.
-
Create a new name space binding, for example:
name: com.ibm.commerce.foundation.server.services.search.datasource-new
value: <JNDI name>
-
Deploy the web.xml file under the Search server.
-
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.
-
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.
-
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"/>
-
Restart the Search server.