WCS admin Interview Questions & Answers

  1. Question 1. Explain The Access Control Policy?what Is The Purpose Of Access Control Policy?

    Answer :

    There are two types of access control, both of which are policy-based: command-level access control and resource-level access control.

    Command-level access control determines whether the user is allowed to execute the particular command within the store you have specified. 

    Resource-level access control policy could be applied to determine if the user can access the resource in question. 

    Access control in a WebSphere Commerce application is composed of the following elements: users, actions, resources, and relationships.

    Users are the people that use the system. For access control purposes, users must be grouped into relevant access groups. 

    Actions are the activities that users can perform on the resource. For access control purposes, actions must also be grouped into relevant action groups. For example, a common action used in a store is a view. A view is invoked to display a store page to customers. The views used in your store must be declared as actions and assigned to an action group before they can be accessed. 

    Resources are the entities that are protected. For example, if the action is a view, the resource to be protected is the command that invoked the view, for example com.ibm.commerce.command.ViewCommand. 

    Relationships are the relationship between the user and the resource. Access control policies may require that a relationship between the user and the resource be satisfied. For example, users may only be allowed to display the orders that they have created.

  2. Question 2. Explain The Dynacache?

    Answer :

    1. Now a days the requirement is changed that caching should be implemented for the content that changes frequently.
    2. The bright solution for this is DynaCache system which is provided by IBM Websphere Application server.
    3. Dyna Cache is to be configured to catch some objects and later based on some matching rules Dyna cache retrive those objects from the cache.
    4. Caching rules are specified in Cachespec.xml file.
  3. Networking Interview Questions

  4. Question 3. What The Ejb Transaction Parameters?

    Answer :

    Possible values for TRANSATTRIBUTE are:

    NotSupported:Bean cannot be involved in a transaction. If the client has started a transaction, the existing transaction is suspended until the bean’s method has completed.

    Required :Bean must always run within a transaction

    Supports :If the client has started a transaction, the bean joins the transaction.

    RequiresNew:Bean always starts a new transaction.

    Mandatory:The client must start a transaction when the bean is invoked.

    Never :If the client has started a transaction, the bean throws an exception. 

  5. Question 4. Which Are Different Types Of Entity Beans N Which One Is Used In Commerce?

    Answer :

    There are 2 types of entity beans available namely

    • BMP-Bean Managed Persistence
    • CMP -Container Managed Persistence

    CMP is used in commerce to interact with the database in commerce.

  6. Networking Tutorial

  7. Question 5. Which Are The Different Types Of Databeans. What Is Commonly Used In Commerce.when Do We Use It?

    Answer :

    A data bean is a Java bean that is used within a JSP page to provide dynamic content. A data bean normally provides a simple representation of a WebSphere Commerce entity bean.

    There are two types of data beans: smart data beans and command data beans.

     A smart data bean uses a lazy fetch method to retrieve its own data. This type of data bean can provide better performance in situations where not all data from the access bean is required, since it retrieves data only as required. Smart data beans that require access to the database should extend from the access bean for the corresponding entity bean and implement thecom.ibm.commerce.SmartDataBean interface. When database access is not required, the smart data bean should extend the SmartDataBeanImpl class.

    A command data bean relies on a command to retrieve its data and is a more lightweight data bean. The command retrieves all attributes for the data bean at once, regardless of whether the JSP page requires them. As a result, for JSP pages that use only a selection of attributes from the data bean, a command data bean may be costly in terms of performance time. Command data beans can also extend from their corresponding access beans and implement thecom.ibm.commerce.CommandDataBean interface.

    SmartDataBean is commonly used in wcs.We use command databean only when using Command databean is impractical.

  8. Linux Interview Questions

  9. Question 6. Which Are The Different Flavours Of Ejb In Wcs ?

    Answer :

    Different flavours of EJB available in WCS are Session Bean and Entity Bean. 

  10. Question 7. What Are Acessbeans? What Is The Advantage Of Accessbean?

    Answer :

    WebSphere Commerce commands interact with access beans rather than directly with entity beans. Access beans provide a simpler interface to clients, caching of the home object, and reduced call traffic to the enterprise bean.Access beans behave like Java beans, and hide all enterprise bean-specific programming interfaces from the client, like the JNDI, home and remote interfaces.

    Advantage of accessbean:

     At run time the access bean caches the enterprise bean home object because look ups to the home object are expensive, in terms of time and resource usage.

    The access bean implements a copyHelper object that reduces the number of calls to the enterprise bean when commands get and set enterprise bean attributes. Only a single call to the enterprise bean is required when reading or writing multiple enterprise bean attributes. 

  11. Linux Tutorial
    Active Directory Interview Questions

  12. Question 8. State One Diff Between 6.0 And 7.0 Commerce Version?

    Answer :

    Social Commerce Support,Coshoping provision, rich look and feel,starter stores optimized for mobile devices. 

  13. Question 9. What Is Optimistic Locking?

    Answer :

    WebSphere Commerce uses an optimistic locking scheme that allows the database transaction isolation level to be lowered from repeatable read to read committed. Using that scheme, database rows not normally accessed concurrently are not locked with an intent to update when they are read. Instead, when the update is eventually made, the row is checked to make sure it has not been updated concurrently since it was read. If it has been updated concurrently, then the transaction is rolled back and the command may be restarted from the beginning in a new transaction, if appropriate. In this scheme, performance is improved when concurrent updates do not normally occur, because the relatively expensive process of obtaining the database locks with intent to update is avoided.

    On the other hand, for those operations where concurrent updates are more likely to occur, pessimistic locking, whereby intent to update locks are obtained when the row is read, continues to be used, thus avoiding the more expensive process of rolling back and re-starting from the beginning in a new transaction. 

  14. IBM WebSphere ESB Interview Questions

  15. Question 10. Which Are The Different Subsystems In Commerce?

    Answer :

    There are mainly 6 subsystems available in WCS namely:

    1. Catalog.
    2. Member.
    3. Order.
    4. Marketing. 
    5. Merchandising.
    6. Trading.
  16. Question 11. How To Know Whether An Inventory Is Allocated For The Order Or Not?

    Answer :

    By checking in to OrderItems table InventoryStatus column.If that column has an value as allc then an inventory is allocated for the order.

  17. windows server 2008 Interview Questions

  18. Question 12. How Many Types Of Inventory Exists?

    Answer :

    There are 4 types of inventory exists in wcs namely:

    1. ATP  
    2. Non ATP
    3. External Inventory
    4. No Inventory.
  19. Networking Interview Questions

  20. Question 13. What Are The Different Types Of Order Capture?

    Answer :

    WebSphere Commerce supports several mechanisms for submitting orders.

    A customer or Customer Service Representative can submit an order using any of the following methods:

    • Requisition lists 
    • Wish lists 
    • Shopping carts 
    • Scheduled orders are recurring orders 
    • Quick orders 
    • Copied orders 
    • Sales quotes.
  21. Question 14. How Many Ways Calcode Can Be Attached?

    Answer :

    3 ways calcode can be attached :

    1. Direct attachment: Here, we can attach a calcode to order or orderitem directly
    2. Indirect attachment: Here, we attach a calcode to catalog or catalog group. Hence, every item in a particular catalog or catalog group is indirectly attached to calcode that is attached to that catalog or catalog group.
    3. Default attachment: Here, we implicitly attach a calcode specifying a calcode to an orderitem in STENCALUSG table.
  22. Question 15. When Taxes Are Calculated?

    Answer :

    Taxes are calculated when we proceed to checkout.

  23. Domain Name System(DNS) Interview Questions

  24. Question 16. What Are Calmethods?

    Answer :

    Calculation methods use the information that is part of calculation usages, calculation codes, and calculation scales to determine monetary amounts for order items. Calculation methods are categorized by the task that they perform within the calculation framework and the part of the calculation framework to which the calculation method belongs.

  25. Question 17. What Is Fulfilment Center?

    Answer :

    Stores use fulfillment centers as both inventory warehouses and shipping and receiving centers. One store can have one or many fulfillment centers.


  26. DHCP Interview Questions

  27. Question 18. What Is Calcode?

    Answer :

    While attachment is defined outside of a calculation code, the following properties are defined as part of a calculation code:

    • A calculation usage. This specifies the calculation type for which a calculation code can be used. Calculation usages are covered in Calculation usages.
    • Calculation methods that are used to qualify, calculate, and apply the calculation code.
    • A flag indicating if a calculation code must be qualified or not.
    • A flag indicating if the calculation code is active, inactive, or marked for deletion.
    • The method of grouping order items for calculations.
    • A sequence number that is used to determine the order of calculations when multiple calculation codes of the same calculation usage apply to an order item.
    • A time range during which the calculation code is in effect.
    • These properties are defined in the CALCODE database table. 
  28. Linux Interview Questions

  29. Question 19. Different Types Of Charges?

    Answer :

    There are 7 types of charges, those are:

    • discount
    • shipping
    • sales tax
    • shipping tax
    • coupon
    • surcharge
    • shipping adjustment
  30. Question 20. What Is Calculation Usage?

    Answer :

    Calculation usage consists of types of taxes that can be attached to an order item.
    By default we have 7 types of taxes like shipping, discount, shipping tax, etc.
    All those can be found in CALUSAGE database table.

  31. IBM WebSphere Administration Interview Questions

  32. Question 21. Difference Between Static Kit And Packages?

    Answer :

    Packages: A package is an atomic collection of catalog entries. It is that all the items in a package can sold together but individual selling of items in a package is not allowed.

    Static Kits:

    1. A static kit is a group of products that are ordered as a unit.
    2. A static kit will back order if any of its components are unavailable.
    3. A static kit is first created as a package then configured by an administrator.
  33. Question 22. What Is Attribute Dictionary?

    Answer :

    An attribute dictionary is a set of common attributes and attribute values that can be reused by multiple products. The attribute management tool in Management Center provides business users the ability to create,update, assign, and manage product attributes.

  34. Question 23. What Is The Difference Between Product And Item?

    Answer :

    Products: A product acts as template for a group of items(or SKUs) that exhibits the same attributes.

    Items: An item is a tangible unit of merchandise that has a specific name, part number and price.

  35. IBM Websphere Application Server Interview Questions

  36. Question 24. Which Tool Is Used For Catalog Management ?

    Answer :

    Product Management Tool.

  37. Active Directory Interview Questions

  38. Question 25. Explain The Sku,partnumber?

    Answer :

    Every product has a unique identification number when it is Manufactured i.e.,PartNumber.SKU is a store keeping unit which is a number when a products  are orderable.

  39. Question 26. Difference Between Mastercatalog And Sales Catalog?

    Answer :

    There are two types of catalogs in a WebSphere Commerce system: master and sales. While a master catalog is the central location to manage all your store’s merchandise and services, a sales catalog is a subset of the merchandise and services found in the master catalog.

          Every store in the WebSphere Commerce system must have a master catalog. Only one master catalog can exist at a time, and multiple stores can share a master catalog. However, you can create one or more sales catalogs for customer display purposes. A sales catalog has a flexible display structure that allows you to associate products to more than one category, to suit the requirements of your store. 

  40. IBM WebSphere MQ Interview Questions

  41. Question 27. How Can We Make A Command Retriable?

    Answer :

    A retriable command is a controller command that can re-execute itself after encountering a system-level exception during the command execution.

    To make an existing controller command retriable, must perform one of the following steps:

    Set the retriable properties in the PROPERTIES column of the CMDREG database table, where PROPERTIES is the default properties associated with this command. The properties are in the property1=value1&property2=value2 form, where propertyn is the name of the property and valuen is the value corresponding to the property.

    Set an instance property in the wc-server.xml file.

    Functional architecture and Runtime architecture of WCS 6.0/WCS 7.0.

  42. IBM WebSphere ESB Interview Questions

  43. Question 28. Which Exception Is Retriable?

    Answer :


  44. Question 29. Which Are Different Types Of Exceptions Used In Commerce?

    Answer :

    ECApplicationException : This exception is thrown if the error is related to user input and will always fail. For example, when a user enters an invalid parameter, an ECApplicationException is thrown. When this exception is thrown, the solution controller does not retry the command, even if it is specified as a retriable command.

    ECSystemException : This exception is thrown if a runtime exception or a WebSphere Commerce configuration error is detected. Examples of this type of exception include create exceptions, remote exceptions, and other EJB exceptions. When this type of exception is thrown, the solution controller retries the command if the command is retriable and the exception was caused by either a database deadlock or database rollback. 

  45. Question 30. List The Different Business Models Of Wcs?

    Answer :

    The different business models of wcs are:

    1. B2C 
    2. B2B 
    3. Demand chain 
    4. Supply chain
    5. Value chain and
    6. Extended sites.
  46. Question 31. What Does Map.mapxmi File Contain?

    Answer :

    Mappings from EJB bean attribute definitions to database table schema column definitions .

  47. Question 32. What Is The Use Of Commitcopyhelper() And Refreshcopyhelper()?

    Answer :

    commitCopyHelper():Instead of using the remote interface, CopyHelper Access Beans exist that contain getters and setters for CMP fields that do not exist on the remote interface. The methods within the CopyHelper Access Beans write data to a hash table that in turn updates the database when commitCopyHelper() is called. The hash table can record multiple database changes then update the database in one transaction, unlike the remote methods which require one transaction per change.

    RefreshCopyHelper():which does the reverse function of commitCopyHelper(). The method refreshCopyHelper() writes to the hash table from the database.

  48. Question 33. Why Is Struts-config Entry Required While Creating A Jsp Or A Command?

    Answer :

    To map views to corresponding JSP pages .

  49. windows server 2008 Interview Questions