The Registry Manager can manage any registries registered to it, including customer
created registries.
Procedure
There are two ways to register a registry with the Registry Manager:
-
Define a new registry:
-
In the HCL Commerce configuration
file, in the <Registries></Registries> node, add a new <registry>.
<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.