To add a customized business context to preview:
- Open the WebSphere Commerce configuration file.
- Within the file, find text similar to the following: <HttpAdapter deviceFormatId="-1" deviceFormatType="browser" deviceFormatTypeId="-1" enabled="true" factoryClassname="com.ibm.commerce.content.adapter.previewhttpadapter.PreviewHttpAdapter" name="PreviewHttpAdapter" > <ReferenceContexts> <Context name="com.ibm.commerce.context.preview.PreviewContext" /> </ReferenceContexts> </HttpAdapter>
- Add your customized context within the <ReferenceContexts> tag, for example, <Context name="com.ibm.commerce.context.globalization.GlobalizationContext" />
- Restart your WebSphere Commerce server