Publishing an extended site: advanced method
You can set up an extended site by publishing a series of store archives. Use this method
if you want more control over the extended sites organization structure and stores as you set up the
environment. In this method, you publish each organization component separately (storefront asset
store, catalog asset store, hub), so that you can specify store names and parameters to use. In
addition, this method results in only a single extended site store in your environment, rather than
multiple sample extended sites stores for different business models. You must use this method if an
extended sites composite store archive is already published in your environment. After you finish
publishing an extended site, you can publish a storefront asset store, such as Aurora.
Before you begin
- Ensure that you have Site Administrator access.
- Ensure appropriate services and servers are running.
- Configure publish.
- Back up your WebSphere Commerce database so that you can restore your prepublished version if necessary.
About this task
When you complete this procedure, your environment includes:
- A customer-facing extended site store that is based on either the Aurora starter store.
- The associated catalog asset store, storefront asset store, and a hub store.
- The overall organization structure, predefined user roles, and necessary access control policies.
WebSphere Commerce provides the tools that are required for your site to create an extended
sites organization structure with the appropriate store. To design and build this organization
structure, use the following WebSphere Commerce tools:
- Organization Administration Console: Use this tool to create organizations to own your asset stores.
- Administration Console: Use this tool to publish the store archives.
- WebSphere Commerce Accelerator: Use the Store Creation wizard in this tool to create your extended site stores.
Procedure
- Open the Administration Console, and then select the Site option.
-
Publish the organization structure store archive to set up the high-level organization
structure:
-
Publish the extended sites hub store archive:
-
Create two additional extended sites organizations, one to own the catalog asset store and the
other to own the storefront asset store.
- Open the Organization Administration Console.
- From the Access Management menu, select Create Organization.
- In the Short name field, type a unique name for organization that will own the catalog asset store, for example, MyCompanyCASOrganization.
- From the list under the Parent organization field, select Extended Sites Organization (Root Organization).
- Complete the remaining required fields, and then click OK.
- Repeat steps 4.b to 4.e to create an organization to own your storefront asset store. However, in the Short name field, type a different unique name, for example, MyCompanySASOrganization.
-
Publish the catalog asset store archive. This asset store is used to contain catalog data
assets for your extended site stores.
- Publish the storefront asset store archive. This asset store consists of web assets that are used on the storefront such as HTML pages, JSP files, style sheets, marketing and branding images, graphics, and other multimedia file types. For more information, see Publishing the Aurora starter store.
- Optional:
Create an extended site store:
- Optional:
Publish sample storefront assets in your extended sites environment.
Note: This step is required only if you want the storefront asset store to contain sample data, such as layouts, marketing activities, e-Marketing Spots, promotions, and so on. Otherwise, you can skip this step.
-
Open the store using Management Center.
- Open Management Center.
- Open the Store Management tool.
- In the explorer view filter, click Stores.
- Right-click the name of the extended site store that you created in step 7; then click Open store.
- To preview the store, right-click the name of the extended site store; then click
Launch store.
Alternatively, you can use the bookmark that you created in step 7.i.
What to do next
- Compile your JavaServer Page files. Compiling the JavaServer Pages (JSP) files in your site or store before launching it will significantly reduce the amount of time necessary to load each store page. As a result, use batch compiler to convert your store or site JSP files after publishing a store archive.
- To prevent unnecessary exceptions from displaying, delete the SendTransactionMsg job from the scheduled jobs. For more information, see Deleting a scheduled job.
- To enable caching in the starter stores,
you must merge the cachespec.xml file from the following directory: Note: In the WebSphere Commerce development environment, caching is turned on by default.
-
WC_installdir/samples/dynacache/businessmodel
with the cachespec.xml file in the following directory:
- WC_eardir/Stores.war/WEB-INF
Edit the existing cachespec.xml file in the WEB-INF directory with the changes in the first file, rather than replace it.
-
WC_installdir/samples/dynacache/businessmodel
- If you are running your web server on a separate node than the WebSphere Commerce node,
complete the following steps after publishing a store archive:
- Stop the web server.
- Copy store web assets from the following directory from the WebSphere Commerce machine to the web server machine in the same location: WC_eardir/Stores.war
- Start the web server.
- In a clustered environment, you must synchronize all cluster members after publishing any store archive. It might take some time for the newly published store assets to propagate to all of the nodes in the cluster after the store finishes publishing.
- If you have published a starter store in a workspace environment, complete these additional
steps to deactivate and then reactivate all the sample web activities. This ensures that all web
activities display correctly in e-Marketing Spots on the storefront:
- Open the Workspace Management tool.
- On the toolbar, click Work On Approved Content.
- Open the Marketing tool and select the name of the store you published.
- In the explorer view, click the Activities folder.
- Right-click any row in the Activities - List page, and then click Select All.
- On the toolbar, click Deactivate.
- On the toolbar, click
Activate.
Now, when you preview the store, all sample web activities display in e-Marketing Spots.