Monday, February 7, 2011

How to get the MerchantKey in the controller command ?

Object sMkey= com.ibm.commerce.server.WcsApp.configProperties.getValue("Instance/MerchantKey");

System.out.println("My sMkey is "+sMkey);

Best WCS supporting site

http://www.wcsadmin.com

http://www.albeesonline.com/blog/2010/12/02/websphere-commerce-7-order-flow-process-for-elite-b2b-starter-store/

Sunday, February 6, 2011

How to get the access log/ client ip address/ which pages client access ?

Make below changes in the wc-server.xml
wc-server.xml location is given below
C:\WCDE_ENT70\workspace\WC\xml\config\wc-server.xml

compClassName="com.ibm.commerce.event.accesslogging.AccessLoggingEventListener"
enable="true" name="AccessLoggingEventListener">















Table names
ACCLOGMAIN and ACCLOGSUB