Tutorials > Content management > Create a content-managed resource
Make the resource content managed
To make a resource content managed you: create a resource container, create a resource manager, register the resource container, and register the resource manager XML file.
Learning objectives
In the WebSphere Commerce development environment, the default XML configuration files are placed in the XML directory under the installation directory. IBM recommends that you use the Rational XML tools to update the XML files for registering the resource container and resource manager.
You can dynamically link the WC_INSTALL/xml directory to Enterprise Applications > WC.
To do this, go to the Enterprise Explorer view, right-click WC and select New > Other > Simple > Folder > Next. In the Folder Name field, type xml and then click Advanced > Link to folder in the file system. Click Browse and navigate to WC_INSTALL/xml. By dynamically linking the folder, you can work with the actual XML file instead of a copy. (If you work with a copy, copy the changes over to the actual file.)
If the dynamically linked XML folder contains errors, simply right click Enterprise Applications > WC and select Properties > Validation > Override validation preferences. Clear the XML Schema Validator check box.
Enable XML capability for the environment:
- Select Window > Preferences.
- In the Preferences window, expand Workbench > Capabilities.
- Select XML Developer. This capability provides additional XML development features.
![]()
- Click OK. The XML capability is enabled.
1 hour
Lessons in this module
- Specify a managed resource
To specify a managed asset, a resource within a resource container must be created to represent the asset. A resource container is a collection of resources that are related to each other. Resource containers are typically classified into components such as catalog or marketing promotions in which the set of resources are dependent in terms of data integrity.
- Create a resource container
Content managed resources can be broken into two parts. This first part is the resource container, which categorizes the different resources.
- Create a resource manager
As mentioned, content managed resources are comprised of two parts. This second part is the resource manager which manages create, update and delete operations for a particular resource. Every resource container has at least one associated resource manager.
- Register the resource container
- Register the resource manager XML file