Complete the following steps on your WebSphere Commerce Developer machine to create Commerce Enabled Portal and WebSphere Commerce Developer:
- Publish sample Portal store (B2B for example).
- Change directory to WCDE_installdir/conf and create a new directory with the name "sar". Change directory to WCDE_installdir/CommercePortal/Commerce/sar. Copy all the .sar files to WCDE_installdir/conf/sar directory.
- Log on to WebSphere Commerce Administration Console and publish the B2B Portal store. The B2B store archive name is "WebSphereB2BDirectCommerceEnabledPortal.sar". The B2C store archive name is "WebSphereB2CDirectCommerceEnabledPortal.sar".
- After the store is published successfully, stop the WebSphere Commerce server.
- From the command line, traverse to the WCDE_installdir/CommercePortal/Commerce/config directory.
- Type the following command to populate the portlet.xml file with the correct store information:
For the B2B store,
modifyPortletXML WCDE_installdir B2B
For the B2C store,
modifyPortletXML WCDE_installdir B2C
This populates the correct information into the portlet.xml file. After executing the script, it displays the following: Buildfile: ..\CommercePortal\Commerce\config\modifyPortlet.xmlPortlet: [echo] ==== Modifying portlet.xml "BUILD SUCCESSFUL"
- Type the following command to turn on portal adapters:
enablePortalAdapters enable
This enables the portal adapter and adds the adapter name to all the wars in the wc-server.xml file.
After running the script, the following text is displayed:
>>> ../xml/config/wc-server.xml <<< WAPPORTAL enable=true PORTAL enable=true adapters=BrowserAdapter --> adapters=PORTAL,BrowserAdapter adapters=BrowserAdapter --> adapters=PORTAL,BrowserAdapter adapters=XML/HTTP, BrowserAdapter --> adapters=PORTAL,XML/HTTP, BrowserAdapter adapters=BrowserAdapter --> adapters=PORTAL,BrowserAdapter adapters=BrowserAdapter --> adapters=PORTAL,BrowserAdapter adapters=PreviewHttpAdapter --> adapters=PORTAL,PreviewHttpAdapter
- Change directory to RAD_installdir/runtimes/base_v6/profiles/default/etc.
- Type the following command to generate the WebSphere Commerce server certificate:
..\..\..\java\jre\bin\keytool -export -alias "websphere dummy server" -keystore DummyServerKeyFile.jks -file WCDE_installdir/CommercePortal/Portal/cert.arm -storepass WebAS
- Verify that the cert.arm file has been generated under the WCDE_installdir/CommercePortal/Portal directory.
- Copy the WCDE_installdir/CommercePortal/Portal directory to a temporary location temp on the machine where Rational Application Developer 6.0 and WebSphere Portal v5.1 Test Environment is installed. After the file copying, there should be a directory temp or Portal directory on the target machine. This step should be done even if the same machine is used to run WebSphere Portal v5.1 Test Server and WebSphere Commerce Developer.
- Restart the WebSphere Commerce server within Rational Application Developer.
- (Optional.) Log in to the WebSphere Commerce Accelerator. You should be see the newly published store. Select and launch the store in a non-Portal environment. (Winstons is a Portal B2C store and
ToolTech is a Portal B2B store.)