Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

developerWorks Community:

  • Close [x]

Creating solutions on the extended sites framework in WebSphere Commerce

Part 1: Using the command layer

Michael DJ Shields (mshields@crossview.com), Solution Architect, CrossView, Inc.
Photo of Michael Shields
Michael Shields works for CrossView®, Inc. He has over a decade consulting and developing strategies to best leverage WebSphere Commerce to match client business requirements. He also has over twelve years of developing interactive web solutions using J2EE, PHP, Zend Framework, Adobe products, HTML, CSS, AJAX, jQuery, DOJO and JavaScript. Michael holds 5 patents, published over 12 tutorials on the WebSphere Commerce Information Center, and 10 tutorials on the developerWorks WebSphere Commerce zone. He holds over 12 technical certifications and a designation as a project manager (PMP).
Quan Nguyen (qnguyen@crossview.com), Solution Architect, CrossView, Inc.
Photo of Quan Nguyen
Quan Nguyen has been working for CrossView, Inc., since 1999, consulting and developing e-business solutions by leveraging WebSphere Commerce. As a Solution Architect, he has over a decade of experience, working with major B2C and B2B companies to implement robust WebSphere Commerce strategies, fulfilling their business requirements.
Raj Sanghvi (rsanghvi@crossview.com), Solution Architect, CrossView, Inc.
Photo of Raj Sanghvi
Raj Sanghvi is a Solution Architect for CrossView, Inc. He has over 6 years of experience consulting in WebSphere Commerce working for different sub systems. He also has over 10 years of experience doing software development using J2EE, Oracle, HTML, XML, and SOAP. He holds over 8 technical certifications and a designation as a project manager (CAMP). He has a Master's degree in Computer Science.
Amar Desai (amar.desai@atech.com), Solution Architect, Ascendant Technology
Photo of Amar Desai
Amar Desai is a Solution Architect at Ascendant® Technology. He has helped many top retail, banking, and dining companies materialize their vision in the e-commerce space using WebSphere Commerce. He has a penchant for applying the latest web application trends such as social commerce, precision marketing, and mobile commerce. He is a certified WebSphere Commerce developer and administrator.

Summary:  The purpose of extended sites in WebSphere® Commerce is to ensure sharable assets among different stores. This tutorial provides insight into different ways to use the store path resource that is an available-to-market framework in WebSphere Commerce. A new concept is introduced in this tutorial that provides provide granular levels of sharing with a sub-set of assets. Also, this tutorial describes how to properly extend an EJB to use the BeanFinderObject for your findBy methods to incorporate sharing queries. You will learn how to better ensure that your store's conglomerate is fully capable to share all of the integral assets to make your business successful, while keeping your software reusable and easy to maintain.

Date:  20 Oct 2010
Level:  Intermediate PDF:  A4 and Letter (143 KB | 53 pages)Get Adobe® Reader®

Activity:  23828 views
Comments:  

Setting up the environment

Deploying extended sites

Prerequisites

If you already have an extended sites environment setup, then skip to Create store Example1 to create the new stores to implement the tutorial steps introduced later. When creating test data, this tutorial uses the naming convention of Example and appends a counter. In this tutorial, the counter is 1. Therefore, all created elements that require a name are titled Example1. With this in place, if you choose to create multiple scenarios, then you can append the counter to have multiple hosted stores, such as Example1, Example2, Example3, Example(n).

You will need to deploy an extended sites implementation so that you can leverage the framework. WebSphere Commerce has already laid out the foundation that enables business asset sharing so with the deployment in place, you can easily participate in this tutorial. To deploy extended sites:

  1. Log into the WebSphere Commerce Administration Console as a site administrator, which loads into Administration Console Site/Store Selection page.
  2. Check Site and click the OK button.
  3. Select the menu titled Store Archives, then click the sub menu Publish. The Publish page shows the "Store Archives" panel.
  4. Select ExtendedSites from the display dropdown of extended sites.
  5. Check the SAR file ExtendedSitesOrganizationStructure.sar.
  6. Click the Next button on the top right of the panel. The Parameters panel appears.
  7. Accept the defaults and click the Next button on the top right of the panel. The Summary panel appears.
  8. Accept the defaults and click the Finish button on the top right of the panel.
  9. Click the OK button for the web page dialog.
  10. Wait for the publish to complete and click Refresh to acknowledge the Publish Status as complete.

Publishing the extended sites hub

The extended sites hub (available only if ExtendedSitesHub.sar has been published) is an e-commerce site where prospective sellers can register and set up a store. "Seller" is a role defined in WebSphere Commerce to supervise the overall store objectives and management, in addition to tracking store sales. From the extended sites hub, a seller can do the following:

  • Self-register from the extended sites hub. Once approved, sellers can create a store using the Store Creation wizard.
  • Manage the store. Capabilities include changing the store look and feel, marketing, product management, and others.
  • Perform organization and user management tasks, such as creating additional store administrators.

"Channel Manager" is another important role defined in WebSphere Commerce. Channel managers can administer the extended sites hub by using the WebSphere Commerce Accelerator.

  1. Select the menu titled Store Archives, then click the sub menu Publish. The Publish page shows the Store Archives panel.
  2. Select ExtendedSites for the View dropdown (or select the default Store Archives view and then reselect the Extendedsites Store Archives view).
  3. Check the SAR file ExtendedSitesHub.sar.
  4. Click the Next button on the top right of the panel. The Parameters panel appears.
  5. Ensure the parameters are as follows:
    Store directory
    ExtendedSitesHub
    Store identifier
    Extended Sites Hub
    Organization
    Extended Sites Organization
  6. Click the Next button on the top right of the panel. The Summary panel appears.
  7. Accept the defaults and click the Finish button on the top right of the panel.
  8. Click the OK button for the web page dialog.
  9. Wait for the publish to complete and click Refresh to acknowledge Publish Status as "complete".

Publishing extended sites catalog asset store: Example

  1. Select the menu titled Store Archives, then click the sub menu Publish. The Publish page shows show the Store Archives panel.
  2. Select ExtendedSites for the View dropdown (or select the default Store Archives view and then reselect the Extendedsites Store Archives view).
  3. Check the SAR file ExtendedSitesCatalogAssetStore.sar.
  4. Click the Next button on the top right of the panel. The Parameters panel appears.
  5. Ensure the parameters are as follows:
    Store Directory
    ExampleCatalogAssetStore
    Store identifier
    Example Catalog Asset Store
    Organization
    Extended Sites Organization
    Sample data
    None
  6. Click the Next button on the top right of the panel. The Summary panel appears.
  7. Accept the defaults and click the Finish button on the top right of the panel.
  8. Click the OK button for the web page dialog.
  9. Wait for the publish to complete and click Refresh to acknowledge Publish Status as "complete".

Publishing extended sites B2BDirectStorefrontAssetStore: Example

  1. Select the menu titled Store Archives, then click the sub menu Publish. The Publish page shows the Store Archives panel.
  2. Select ExtendedSites for the View dropdown (or select the default Store Archives view and then reselect the Extendedsites Store Archives view).
  3. Check the SAR file B2BDirectStorefrontAssetStore.sar.
  4. Click the Next button on the top right of the panel. the Parameters panel appears.
  5. Ensure the parameters are as follows:
    Store directory
    ExampleStorefrontAssetStore
    Store identifier
    ExampleStorefrontAssetStore
    Organization
    Extended Sites Organization
    Catalog asset store
    Example Catalog Asset Store
  6. Click the Next button on the top right of the panel. The Summary panel appears.
  7. Accept the defaults and click the Finish button on the top right of the panel.
  8. Click the OK button for the web page dialog.
  9. Wait for the publish to complete and click Refresh to acknowledge Publish Status as "complete".

Creating store Example1

  1. Log into the Accelerator as a site administrator. The page loads with "Select Store and Language".
  2. Select Extended Sites Hub for the store name.
  3. Click the OK button. The page reloads with the menu items Hub, Extended Sites, Reports, and Help.
  4. Highlight the menu item Extended Sites and click, then click the sub-menu item New Store.
  5. Under the General panel, enter the following information:
    Store unique identifier
    Example1
    Store display name
    Example1
    Store description
    Example1
    Notification recipient email
    <store email>
    Default store currency
    US Dollar
    Store organization
    Extended Sites Seller Organization
    (Previous versions) Store category
    (Previous versions) Electronics
  6. Click the Next button on the top right.
  7. Under the Store Type panel, enter the following information:
    Store Type
    ExampleStorefrontAssetStore
  8. Click the Next button on the top right.
  9. Under the Catalog panel, enter the following information:
    Catalog
    Example Catalog Asset Store
    (This assumes that an Extended Sites Catalog Asset store has been created.)
  10. Click the Next button on the top right.
  11. (Previous versions) Under the Fulfillment panel, enter Fulfillment center nameExample1 and click Add.
  12. Click the Next button on the top right.
  13. Under the Payments panel, enter the payments you wish to use.
  14. Click the Next button on the top right.
  15. Under the Store Creation Summary panel, review the information.
  16. Click the Finish button on the top right. The page reloads to the Store Creation Confirmation page.
  17. Wait while a message shows "Please wait while the store is being created...".
  18. The resulting message shows the URL http://localhost/webapp/wcs/stores/servlet/StoreView?storeId=<store identifier>, where <store identifer> is the value of the store identifier.
  19. (Optional) Click the Bookmark Store button to add the Example1 store to the browser bookmarks.
  20. Click the Close button on the top right.
  21. Highlight the menu item Extended Sites and click, then click the sub-menu item View Stores.
  22. Check the Store Name Example1. The right menu buttons now enable the Resume button.
  23. Click the Resume button and the panel reloads.
  24. Check the Store Name Example1. The right menu buttons now enable the Open button.
  25. Click the Open button. The page reloads to indicate the store is open.

Creating store Example2

  1. Log into the Accelerator as a site administrator. The page loads with "Select Store and Language".
  2. Select the Extended Sites Hub for the store name.
  3. Click the OK button. The page reloads with the menu items Hub, Extended Sites, Reports, and Help.
  4. Highlight the menu item Extended Sites and click, then click the sub-menu item New Store.
  5. Under the General panel, enter the following information:
    Store unique identifier
    Example2
    Store display name
    Example2
    Store description
    Example2
    Notification recipient email
    <store email>
    Default store currency
    US Dollar
    Store organization
    Extended Sites Seller Organization
    (Previous versions) Store category
    (Previous versions) Electronics
  6. Click the Next button on the top right.
  7. Under the Store Type panel, enter the following information:
    Store type
    ExampleStorefrontAssetStore
  8. Click the Next button on the top right.
  9. Under the Catalog panel, enter the following information:
    Catalog
    Example Catalog Asset Store
    (This assumes that an Extended Sites Catalog Asset store has been created.)
  10. Click the Next button on the top right.
  11. (Previous versions) Under the Fulfillment panel, enter the following information, Fulfillment center nameExample2 and click Add.
  12. Click the Next button on the top right.
  13. Under the Payments panel, enter the payments you wish to use.
  14. Click the Next button on the top right.
  15. Under the Store Creation Summary panel, review the information.
  16. Click the Finish button on the top right.The page reloads to the Store Creation Confirmation page.
  17. Wait while the message shows "Please wait while the store is being created...".
  18. The resulting message shows the URL http://localhost/webapp/wcs/stores/servlet/StoreView?storeId=<store identifier>, where <store identifer> is the value of the store identifier.
  19. (Optional) Click the Bookmark Store button to add the "Example2" store to the browser bookmarks.
  20. Click the Close button on the top right.
  21. Highlight the menu item Extended Sites and click, then click the sub-menu item View Stores.
  22. Check the Store Name Example2. The right menu buttons now enable the Resume button.
  23. Click the Resume button. The panel reloads.
  24. Check the Store Name Example2. The right menu buttons now enable the Open button.
  25. Click the Open button. The page reloads to indicate the store is open.

2 of 11 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=551401
TutorialTitle=Creating solutions on the extended sites framework in WebSphere Commerce
publish-date=10202010
author1-email=mshields@crossview.com
author1-email-cc=dwu@us.ibm.com
author2-email=qnguyen@crossview.com
author2-email-cc=dwu@us.ibm.com
author3-email=rsanghvi@crossview.com
author3-email-cc=dwu@us.ibm.com
author4-email=amar.desai@atech.com
author4-email-cc=dwu@us.ibm.com