Tuesday, January 4, 2011

Installing a Security Certificate in Websphere Commerce Developer Toolkit

1. Start WCS Server.
2. Start Administration Console by right clicking on the server and selecting 'Run Administartive Console' from Administration Context menu.
3. From the Admin Console window Expand Security and Select SSL Certificate & Key Mgmt


4. Click on SSL Configuration



5. Click on Node Default SSLSetting



6. Select Key Stores and Certificates



7. Select NodeDefaultTrustStored


8. Select Signer Certificates.


You can Select if you have the certification file or Select Retrieve from Port if you want to download the certificate.

Tuesday, December 21, 2010

Override isGeneric method in controller command

All commands try to create a new user object in the database, which in most cases is not required. To avoid loading of a user object we should override isGeneric method in the controller command and return a Boolean true. This will ensure that command will not end up spending time to create a user object, thus improving the performance of executing command..

Is the new command satisfying the following requirement.

- Command does not need to create a new user. (Ex: To View HomePage, ProductPage, search for product we don’t have to create user)
- Command does not access any user specific resources like Guest PII information or cart information. (Ex: ProductDisplay does not access users personal information, search doesn’t require to know the items in the cart)