Sunday, December 13, 2015

Changing the http and https port numbers in WCS7

Changing the http and https port numbers in WCS7

As we all know, the default port number configured in WCS for http is 80 and https is 443. In many of the PCs provided by organizations these ports will already be in use and hence we will have to change the default values. Below are the steps to change the port numbers in commerce.


1. Change the port number in WAS console
In WAS we need to change the port numbers in three places.
  •    Open WAS console and go to Environment-->Virtual hosts --> Change port numbers for all the virtual hosts
  •    Go to servers--> Server Types-->Websphere application servers -->  click server1 --> click Ports on the right hand side --> Change the ports appropriately
  •     If you are on or above FEP7 you need to change the search url and search port. Go to Environment --> Naming --> Name space bindings. change the port numbers for com.ibm.commerce.foundation.server.services.search.url and com.ibm.commerce.foundation.server.services.search.port 
2. DB changes

Change the port numbers in SRCHCONF and SRCHCONFEXT tables. updating tables will require a restart to reflect the changes

3. Change the port number for solr url in wc-search.xml.
  •            In RAD navigate to WC-->xml-->config-->com.ibm.commerce.catalog.ext-->wc-search.xml. Locate  "<_config:common-http URL". Add port number in the url it must look like        "http://localhost:81/solr/"
  •            Navigate to WC-->xml-->config-->com.ibm.commerce.catalog.fep-->wc-search.xml. Make the same change as above there as well.
The same changes need to be done in wc-search.xml in Search project as well.


All these changes requires a restart to reflect.
  

Cross transactional cache invalidation across WCS and Search applications

Introduction Cache invalidation is one of the key and tedious part of software development. It is really important that we purge the inval...