Setting up a clustered environment to use a separated store archive
You can separate the store web application archive
(WAR) from the WebSphere Commerce enterprise
archive (EAR) and set up a clustered environment that uses the separated
EAR. 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
- 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.
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.