Enabling store separation in an existing clustered environment
If your site uses a clustered environment, you
can separate the store web application archive (WAR) from the WebSphere Commerce enterprise
archive (EAR) within this environment. When the store separation process
completes, a new store EAR is created that contains an copy of the
store WAR. The original store WAR within the WebSphere Commerce EAR
is disabled. With this separation, the storefront assets for your
WebSphere Commerce instance are included either within the store EAR
or the WebSphere Commerce EAR and referenced by the store EAR through
a shared library.
Before you begin
- Install WebSphere Commerce Version 7 Enterprise Edition
- Install WebSphere Commerce Version 7 Fix Pack 8
- Install WebSphere Commerce Feature Pack 7
- Enable the starter store enhancements feature
- Publish the Aurora starter store archive
- Setup and configure the WebSphere Commerce search server
- Cluster your WebSphere Commerce environment. You can set up a clustered environment with vertical cluster members or horizontal cluster members.
- Back up your Java EE assets
- Back up the WebSphere Commerce database. For more information about backing up your database, review the documentation from your database provider.
- Back up your clustered environment. Use the backupConfig command provided by WebSphere Application Server, or your own preferred backup utility to back up your existing EAR files and configuration files on all of your nodes:
- Start the WebSphere Application Server Deployment Manager (dmgr)
- Start all WebSphere Application Server node agents. Ensure that you start each node agent as the WebSphere Commerce non-root user.
- Start the WebSphere Commerce cluster.
Procedure
Results
The store WAR for your WebSphere Commerce instance is separated from the WebSphere Commerce EAR. You can deploy any future changes into the appropriate EAR without affecting the other EAR.
Note: If you add a node or cluster member,
you must update the shared library and class loader to work with the
new node or member. To update the library and class loader to work
with a new node or cluster member:
- In a command-line utility, go to the following directory:
- WC_installdir/bin
- WC_installdir\bin
- Run the following command:
- ./config_ant.sh -buildfile WC_installdir/components/store-separation/xml/syncClassLoader.xml -DinstanceName=demo
- .\config_ant.bat -buildfile WC_installdir\components\store-separation\xml\syncClassLoader.xml -DinstanceName=demo
What to do next
After you separate the store WAR, update any store functions and processes that use assets that were included within the default store WAR. Update these functions and processes to point to the new location of the store assets in the store EAR.
When your store developers create or change store assets, the assets can be deployed into the new store EAR with the WebSphere Commerce Build and Deployment tool. For more information, see Deploying new and changed store assets into a separated store EAR.