The Registry Manager can manage any registries
registered to it, including customer created registries.
There
are two ways to register a registry with the Registry Manager:
Procedure
- Define a new registry:
- In the WebSphere
Commerce configuration file, in the <Registries></Registries>
node, add a new <registry>. For example:
<registry initialCapacity="500" name="myStoreRegistry"
loadFactor="0.75" regMaxSize="500"
regClassName="com.ibm.commerce.registry.StoreRegistry"/>
Where:
- initialCapacity
- The initial capacity of the total number of registry entries in
the cache.
- name
- The unique name of the registry.
- loadFactor
- Optional: Defines the load factor percentage of the registry cache. The
default value is 0.75.
- regMaxSize
- Optional: The maximum limit of cache entries. The default value
is 500.
- regClassName
- The name of the registry class.
- Explicitly call the addRegistry() method of the RegistryManager
class.