Monday, 20 June 2016

Fetching Server or Clone ID in a Controller Command

In Order to fetch the server/ Instance name or clone ID in Controller Command use the following methods

HttpControllerRequestObject req = (HttpControllerRequestObject) getCommandContext().getRequest();
req.getServletContext().getServerInfo();

or

WCSApp.getCloneId();

WebSphere Commerce Search FEP8 Step by Step Migration Guide:

Found a Useful Document on developer works on WebSphere Commerce Search FEP8 Step by Step Migration Guide.

Sharing it on the blog as a useful reference.

Click here to access the document

Configuring Bloomreach SNAP on Websphere Commerce

Hi All, recently came across a web page on BloomReach integration with Websphere Commerce for improving search experience and thought of sharing it on the blog.

Click Here for the information on BloomReach

Click Here for information on Infocenter regarding the Integration of Websphere Commerce with BloomReach

Persistent Session management for Guest Users

Whenever a Guest User adds a product to the cart and closes his browser he will loose the contents added to the cart on opening a new session on the browser.

Sometimes, as per business requirement we might need to keep the persistent session for guest users as well in order to keep the items in the cart from previous session of the browser.

In order to achieve this in Websphere Commerce we might need to enable GuestUserOrderResetEventListener in wc-server.xml as shown below
  1. <component
        compClassName="com.ibm.commerce.order.event.GuestUserOrderResetEventListener"
        enable="true" name="Migrate Guest Orders Event Listener">
      <property display="false">
          <start enabled="true"/>
      </property>
    </component>

Tuesday, 2 June 2015

Understanding SOLR Search Customization in Websphere Commerce

Found a nice article on understanding the SOLR search customization points in Websphere Commerce. Click here for more details

Creating a new Facet in Websphere Commerce

Found a nice article on creating a facet in Websphere Commerce and thought of sharing this on my blog for future reference.

Click here for details

Thursday, 17 October 2013

DB2 Backup and Restore commands

It is very common in projects to keep the backup of database and restoring the new copies of database. Following are the two commands which will be helpful in backup and restore of database

DB Backup :

  • Open db2cmd prompt
  • Navigate to the directory where you want to take the backup of your database
  • Enter the command db2 backup db DBNAME compress  (Replace DBNAME with your database name)
DB Restore: 

  • Open db2cmd prompt
  • Navigate to the directory where your database copy exists or the database which you want to restore
  • Enter the command db2 restore db DBNAME (Replace DBNAME with your database name)

Note : Sometimes after restore of the database WC Server might not start properly. In such cases do a setdbtype and the server will start properly