Deploying new and changed store assets into a separated store EAR
If the store WAR for your WebSphere Commerce instance is separated into a store EAR, you can use the WebSphere Commerce Build and Deployment tool to deploy assets into the store EAR.
Packaging and deploying store assets into the store EAR
- wc
- The WebSphere Commerce EAR. By default, this EAR is named WC_instance_name.ear
- search
- The WebSphere Commerce search EAR. By default, this EAR is named Search_instance_name.ear
- wcstores
- The separated WebSphere Commerce store EAR. By default, this EAR is named WCStores_instance_name.ear
For more information about this configuration property, see Build configuration properties. For more information about configuring the WebSphere Commerce Build and Deployment tool build process, see Configuring and running the build process.
When you deploy your packaged assets to your production environment, deploy your WebSphere Commerce EAR assets first. Then, deploy your store assets package to your store EAR.
If your WebSphere Commerce EAR assets are not in a file path that is configured for the shared library between the two EARs, update the shared library to point to your deployed server-side JAR file. If your assets are included within a path that configured for the shared library, you do not need to update your shared library configuration. Any new JAR files that you deploy within a configured path for the shared library can automatically be referenced by the shared library. You can update your shared library, Customer_shared_lib by including the JAR file in the class path within the configuration tab for the shared library properties in the WebSphere Application Server Admin Console. For more information, see Running the server deployment process for server-side assets.
If the store assets that you changed are deployed to only the store EAR, and the asset is not referenced by any shared library, you do not need to restart the WebSphere Commerce server. For example, when you are deploying only JSP file changes, you might not need to restart the server. If you deployed assets also into the WebSphere Commerce EAR, you must restart the server.
For a tutorial about building and deploying custom assets for deployment into the WebSphere Commerce EAR and store EAR after the store WAR is separated into a store EAR, see Building and deploying assets into a separated store archive.
Publishing new and changed store assets
After you deploy your assets into the separated store EAR, you can use WebSphere Commerce utilities to publish the assets to the storefront. You do not have to update or change the provided WebSphere Commerce utilities before you can use the utilities to publish assets into your production environment store EAR. When the store separation enablement process runs, the WebSphere Commerce utilities that update EAR files, such as file upload or quick publish are configured to user the StoreSepWASEARUpdater EAR updater. This configuration ensures that utilities can propagate changed assets into the store EAR and appropriate shared libraries. When you do use a utility to publish your store assets, ensure that you specify the new location where the assets are to be published.