Manually creating a quick publishing target on a staging server
You can readily export production customer segments from a production instance into an authoring instance. The required quick publish connection will have been automatically created during the creation of the authoring instance. You can also export from a production instance into a staging instance, as long as the quick publish connection has been manually created. Use the following steps to manually create the quick publish connection on a staging instance.
Before you begin
About this task
Procedure
-
Back up the original createInstance.properties file
created when the Configuration Manager was used to generate the staging
instance. The properties file is found in the following directory:
- WC_installdir/instances/instance_name/properties/createInstance.properties.
- WC_userdir/instances/instance_name/properties/createInstance.properties.
-
Edit the createInstance.properties file and fill in the
values for the following properties. These properties are normally used by an
authoring instance and are not by default defined in a staging environment. The
following are examples; use the values that are appropriate to your
system.
isContentManagement=true
Allows the ANT scripts to run.cmDBUserID=db2user
This is the production DB user that will end up in the JaasAuthData.cmTargetApp=WC_demo
cmDatasourceName=WebSphere Commerce DB2 Publish DataSource stage2
The name of the quick publish datasource that will be created in the staging environnment.cmDatabaseType=db2
Database type of the production database.cmDBName=WCDB
Database name of the production database.-
cmDbServerName=WC8MLG.acme.com
- Server name of the production database. cmDbServerPort=50000
Port of the production database.cmJdbcURL=jdbc:db2://WC8MLG.acme.com:50000/WCDB
JDBC URL of the production database.
-
Run the following ANT scripts to generate the quick publish data source.
- Restart the server, and test the JDBC connection in the WebSphere Application Server administration console.
- Copy the original Jar file, WC_profiledir\stage\installedApps\WC_stage_cell\WC_stage.ear\Enablement-BusinessContextEngineAdvancedInterface.jar, to a backup file at C:\temp\Enablement-BusinessContextEngineAdvancedInterface.jar.
- Follow steps 1 to 21 in Deploying J2EE assets for an entire module. In Step 15, on the Install new application screen, select Step 4: Map resource references to resources. Modify Target Resource JNDI Name to reflect the correct publishing data source. Select the correct datasource name from the pulldown (for example, WebSphere Commerce DB2 Publish DataSource (stageInstanceName).
- Restart the server.