Monday, January 31, 2011

How to compile all jsp in the Store.war (batch compile)

C:\WCDE_ENT70\wasprofile\bin> JspBatchCompiler.bat -enterpriseapp.name "WC_demo" -webmodule.name "Stores.war"

Friday, January 21, 2011

WebServices in WCS

What is Web services ?

The term Web services describes a standardized way of integrating Web-based applications using the XML, SOAP, WSDL and UDDI open standards over an Internet protocol backbone. XML is used to tag the data, SOAP is used to transfer the data, WSDL is used for describing the services available and UDDI is used for listing what services are available. Used primarily as a means for businesses to communicate with each other and with clients, Web services allow organizations to communicate data without intimate knowledge of each other's IT systems behind the firewall

Here is the technology used in the Web Services
XML + SOAP + HTTP+ UDDI+ WSDL
OR
Letter + Envelop +Postal Service + Post Office + Post Master
This could be a crud example. But it is easy to understand :)
Eg:You are sending a letter to your friend - same as web service
Letter in english(Data in XML)
Letter in Envelop(Data with XML in SOAP)
Send to Post Office through Postal Service(Send SOAP to UDDI through HTTP)
Post Master job to send to actual location(WSDL ..)

How to develop web services in WCS ? ---comming shortily

Monday, January 17, 2011

Integrate WCS with jadclipse

Steps to be Followed: (search jad ,eclipse, clipse,wcs, integrate)

Step1: Copy the jadclipse_3.1.0.jar to E:\RAD601\eclipse\plugins
Step2: Extract the zip file and store it in any drive (preferably E:)
Step3: Open your Commerce Developer Toolkit
Step i: Goto Window à Preferences
Step ii: On the left pane, locate Java
Step iii: Inside Java locate JadClipse
Step iv: In the right pane, enter the path to decompiler : ( E:\jadnt158\jad.exe)
Step v: Do not change anything else
Step vi: Select Workbench from the left pane
Step vii: Locate File Associations in Workbench
Step viii: On the right pane, File Types, Locate .Class
Step ix: Set JadClipse as your default class viewer.
Step 4: Close the toolkit and open it again

Now you would be able to see the .class files in your RAD itself. This would help while extending the current classes.


Uploaded by Athish Roy- Thanks to Athish Roy :)

Friday, January 14, 2011

Steps to install WCS7.0

Step 1. Install IBM Install Manager 1.4 or above
Step 2. Install RAD using Install Manager
Step 3. Intall WAS using Install Manager
Step 4. Apply latest fixes of RAD and WAS
Step 5. Install WCS 7.0
Step 6. Run setupPlugins.bat and setup.bat

Thursday, January 13, 2011

How to Integreate WCS with Coremetrics

  • Integrate with Coremetrics:
    Procedure Navigate to the folder containing your site JSP files.
  • This should be the WC_eardir /Stores.war/ folder. For example, the JSP files for the ConsumerDirect starter store, are located in the WC_eardir /Stores.war/ConsumerDirect/ folder.
  • Update the JSP files with the page view tag. This does not include anything that customers cannot see such as snippets. For more information, see Auto tagging utility.
  • Update your order confirmation page with the order tag.
  • Update your shopping cart display page with the shopping cart tag.
  • Update your product display pages with the product tag.
  • This includes any page that displays low level details about an orderable item, such as packages, bundles, and so on.
  • Update your customer account page with the registration tag. Update your e-Marketing Spot JSP fragments with the campaign URL tag.
  • If necessary, add the generic tag to any pages on which it is required.
  • The page view tag must be the last tag in the body segment of any given JSP file.
  • Any other tags should be placed immediately before this tag.

Wednesday, January 12, 2011

Best Reporting Tools

Please check below link
http://www.spiwebanalytics.com/analytics-tips/a-few-good-tools.html#axzz1AtdeAINz

Integrate Content Management System with WCS

Option-1
Step 1 : ckeditor from http://ckeditor.com/download - (Open source)Step 2: Integrate with Accelerator

  • Edit /CommerceAccelerator/WebContent/tools/emailactivity/EmailTemplateDialog.jsp
  • Add below entry in above jsp file
  • Copy all ckeditor files to below folder
  • CommerceAccelerator\WebContent\javascript\tools\common\cmseditor
  • Open the Manage Email Template session in accelerator
Option 2

Just released on WCS 7- FEP 7
http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.commerce.management-center.doc%2Fconcepts%2Fctfckeditor.htm

Wednesday, January 5, 2011

WebSphere Commerce interview questions.

basic questions for WCS , Interview Questions Wcs , Interview Questions
WebSphere Commerce: WCS interview questions
websphere commerce interview questions ,Websphere Commerce interview questions and answers
webspherecommerceserver wcs interview questions websphere interview questions and answers

General

  • JSTL tags and its details?
  • How to configure JMS in wcs?
  • How to develop webservice in wcs?
  • Explain the access control policy?What is the purpose of access control policy?
  • How to publish the store?what you mean by starter store?
  • How to setup payment ,tables,payment policy,payment types ?
  • Explain the Dynacache?
  • How to enable single sign on?
  • How to enable cross site scripting?
  • How to do fitgap analysis in WCS?
  • What the EJB transaction parameters?
  • which are different types of entity beans n which one is used in commerce?
  • Which are the different types of databeans. What is commonly used in commerce.when do we use it?
  • which are the different flavours of EJB in wcs ?
  • What are acessbeans? What is the advantage of accessbean?
  • How to read the object status from the Remote Java VM?
  • Steps of insert and read data into commerce tables?
  • State one diff between 6.0 and 7.0 commerce version?
  • what is optimistic locking?
  • Which are the different subsystems in commerce?
  • What are the different tools available in commerce?
  • How to schedule job in the commerce ,tables ?
  • Which are the different databases which commerce supports?
  • Which is default database in commerce?
  • Explain Control command and task command in wcs ?
  • What is the use of KEYS table in wcs ?
  • What is the use of CMDREG table in wcs ?
  • How to instatiate a databean -2 ways?
  • What is a command context.?
  • List different types of command context ?
  • How do you instantiate a task command ?
  • Can we instantiate controller command from another controller command ?
  • How do you pass data from controller command to task command?
  • Name five methods available in a Controller command?
  • What is validateParameters() used for?
  • What is the purpose of isRetriable() method in a controller command?
  • what is the first method executed when a controller command is invoked?
  • What is the method called when a databean is invoked?
  • what is the use of optCounter field?
  • List all tag libraries used in a JSP?
  • Why is struts-config entry required while creating a JSP or a command?
  • What is the use of commitCopyHelper() and refreshCopyHelper()?
  • What does map.mapxmi file contain?
  • what does stores project contain?
  • While creating a new View, what are the entries made in struts-config xml?
  • What is format tag used for?
  • what is a locale?
  • What does SAR file mean?
  • What is the default store for b2c?
  • What are the different editions of WCS?
  • List the different business models of wcs ?
  • Which are different types of Exceptions used in commerce?
  • Whats the difference between system Exception and Application Exception?
  • Which exception is retriable?
  • How can we make a command retriable?
  • Which the main Exception class used in commerce?
  • Functional architecture and Runtime architecture of WCS 6.0/WCS 7.0.
Member subsystem
  • Organization hirarchy?
  • Different tables used for user registraton?
  • Releationship between the user and organization?
  • How to create roles ?
  • How to create users?
  • How to create organization?
  • What are the different typs of user types?
  • What are the different types of member groups

Merchandizing
  • How to setup promotion- explain the tables used for promotion ?
  • How to create campagin activity?
  • What are the diffent activity in marketing campaign?

Order Subsystem
  • Explain the differnt order status?
  • Difference between the order item and orders and tables ?
  • Different types of promotions and details with tables?
  • Explain the Calculation frame work with example and tables?
Accelerator
  • Explain the Acceleretor framework?
  • Explain in detal any customisations or development done in acceleretor using Notebook, Wizard, Dialogs?
  • Best practices for customizing accelretor?

Adminstration
  • How to setup the email?
  • What is the use of transport option in administration console?

Contracts
  • How to create contract?
  • How to setup the Catalog filter and explain with tables?

Catalog
  • Difference between mastercatalog and sales catalog?
  • How to setup different category - tables and commands?
  • Explain the SKU,partnumber with catalog tables?
  • What is dictionary?
  • Which tool is used for catalog management ?
  • what is the difference between product and item?
wcs7.0
  • About wcf

WCS Pricing options

Different levels of pricing are possible on wcs
1. Base price - using list price and offer price - complete OOB- Use accelerator (b2c,b2b)
2.Promotion price - Advanced- (order,shipping,product level ) ,can attach to subset of customers(customer segment) - available in IBM MC and Accelerator(b2c,b2b)
3. Contract- Advanced-Accelerator - b2b (Advanced tool - Mindtree Contract pricing frame work (CPF) for advanced Contract settings)
4. Dynamic pricing - Price list and price rule options- Advanced - IBM MC- with FEP2 on wcs7.0
5.IBM I LOG JRule - Advanced- Possible to integrate with WCS

Things to consider for Install Feature pack2 on WCS7.0

Steps to Install Feature Pack 2

  1. Install WCS 7.0
  2. Install IBM Update Installer version 1.4.1 ( or use the intrim fix pack IFJR37262 on top of 1.4)
  3. Install WCS fix pack 2 ( 7.0.0.2)
  4. Install WAS fixpack 13 (7.0.0.13)
  5. Install the Feature pack 2
  6. Republish the server after the installation. (other wise your application may not work )
  7. execute below command to enable the feature pack enableFeature.bat -DfeatureName=management-center
  8. For a successful build below message will be in \toolkitfolder\logs\enableFeature.logBUILD SUCCESSFULTotal time: 18 minutes 5 seconds
  9. Republish the server