Deploying Commerce Enabled Portal to various environments

How you deploy Commerce Enabled Portal depends on which environment you are working in, and what you are deploying.

Deploying Commerce Enabled Portal samples

Deploying a Commerce Enabled Portal sample (or any Commerce Enabled Portal based on a sample or WebSphere Commerce store) is a two step process. First you publish the store archive to the WebSphere Commerce Server, then deploy the corresponding portlets to the WebSphere Portal.

How you deploy the sample depends on which environment you are working in.

In the production environment

When you initially install and configure Commerce Enabled Portal, a Commerce Enabled Portal sample is published to the WebSphere Commerce Server and the corresponding portlets are deployed to WebSphere Portal by the configuration process.

To deploy further samples (or any Commerce Enabled Portal based on a sample) in the production environment, you must repeat the configuration portions of the Installing Configuring Commerce Enabled Portal process.

WebSphere Commerce development environment In the development environment

To deploy the samples in the development environment, do the following:

  1. Publish the starter store archive following the instructions in Publishing a store archive. Note that Commerce Enabled Portals starter store are packaged as composite store archives and are named WebsphereB2CDirectCommerceEnabledPortal.sar and WebsphereB2BDirectCommerceEnabledPortal.sar.
  2. Deploy the portlets to the machine installed with Rational Application Developer (with Portal Tools as additional feature) and WebSphere Portal v5.1 Test Environment. To deploy the portlets, see Configuring Commerce Enabled Portal with Rational Application Developer and WebSphere Portals.

If you are deploying a non portal starter store, or a store of your own, see Adding portal function to your store.

WebSphere Commerce development environment Deploying from development to production

Deploying the Commerce Enabled Portal

To deploy the Commerce Enabled Portal from the development environment to a production environment, do the following:

  1. In the Rational Application Developer with Portal Tools feature, export the portal application project as a WAR file. For more information, see the topic Exporting the Web archive (WAR) files, in the Rational Application Developer information center.
  2. Copy the exported WAR file to the production server.
  3. If during the development of the portal application any portal skins or themes were created or changed, copy the changed themes and skins to the following directory on the production server:
    • WAS_installdir\installedApps\hostname\wps.ear\wps.war\themes\markups
  4. Import the WAR file to the production server. You have two options:
    • Using the XML access utility in WebSphere Portal, or
    • using the WebSphere Portal Administration Portlets.
      For more information about both options, see the Commerce Enabled Portal tutorials.

Deploying customized code

If you have developed customized code (for example, business logic to be used in commands or other code used in JSP files) for WebSphere Commerce, follow the instructions for deploying in the WebSphere Commerce Developer.

If you have extended the generic portlet provided with Commerce Enabled Portal, you need to export the war file. For more information, see the steps in Deploying the Commerce Enabled Portal.

Feedback