The Registry Manager maintains a set of registries for caching WebSphere Commerce runtime data.
Each registry provides methods to enable adding, deleting and refreshing of the registry content. These methods are available to the URL interface by means of the ListRegistry and the RefreshRegistry commands.
If the data in the tables associated with a registry is changed, you will need to refresh that registry for the change to take effect. For example, if a new entry is added to the URLREG table, the UrlRegistry has to be refreshed. Otherwise, the WebSphere Commerce runtime environment will not recognize the new URL.
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:
- Define a new registry under the registries node in the instance.xml file.
- Explicitly call the addRegistry() method of the RegistryManager class.
The following is a list of registry components, their usage, and their associated tables:
Registry component | Usage | Associated table |
---|---|---|
AltLanguageRegistry | Alternative store language (used when the default store language is not available). | STORE, if the store group is changed or a new record is added and LANGPAIR If the AltLanguageRegistry is updated with new descriptions then the CurrencyManager and the QuantityManager should also be updated, because of the alternate languages specified. |
BusinessPolicyRegistry | Business policies (sets of rules followed by a store or group of stores that define business processes, industry practices, and the scope and characteristics of a store's or group of stores' offerings) | POLICY, POLICYCMD |
CalculationRegistry | Calculation rules, methods, ranges for coupon, discount, shipping, and taxes | CALRULE, CALMETHOD, CALSCALE, CALRANGE, CALRLOOKUP, STENCALUSG, and CALCODE (where only the default calculationCodes are cached), TAXCGRY, CATENCALCDCATGPCALCDCALCODEMGP, CALRULEMGPSHPJCRULE, TAXJCRULECRULESCALE This registry needs to be refreshed whenever coupon, discount, shipping, or taxation configuration has been changed. |
CommandRegistry | WebSphere Commerce commands, allowing the WebSphere Commerce Server to look up an implementation and default parameters for a command interface. | CMDREG |
CurrencyManager | Store currency, including the customer or buyer preferred currencies and shopping currencies. | CURLIST, CURCVLIST, CURCONVERT, CURFORMAT, CURFMTDESC, STORELANG, NUMBRUSG, STOREENT (If the column SETCURR changes) |
DeviceFmtRegistry | Device format algorithms, used to determine the appropriate JSP file to use as the response for a particular request for a message mapper. An adapter accepting requests and using the message mapper is given a device format ID. | DEVICEFMT |
LanguageRegistry | Store language | LANGUAGE |
QuantityManager | Quantities within orders, including the conversion format rules, quantity formats, and descriptions. | QTYCONVERT, QTYFORMAT, QTYFMTDESC, NUMBRUSG |
SCFRegistry | Store configuration file | This registry caches the store configuration file (SCF) and needs to be refreshed whenever this file is updated. Tooling that modifies the store configuration file will automatically refresh this registry. The store configuration file for a given store is located in the path defined by the SCFFile variable in the instance configuration file. |
StoreRegistry | Store information | STORE, STOREENT, and STOREGRP |
TradingAgreementRegistry | Trading agreements. WebSphere Commerce supports several trading agreement types, including account, contract, RFQs, exchange, and auctions. The trading agreement types are defined in the TRDTYPE table. | TRADING |
UrlRegistry | WebSphere Commerce controller commands (also called URLs) | URLREG |
ViewRegistry | WebSphere Commerce view commands | VIEWREG |
UBFRegistry | UBF (universal business flow) for approvals, auctions, contracts, and trading | FLOWDOMAIN, FLOWDESC, FLOWTYPE, FLTYPEDESC, FLOW, FLDOMNDESC, FLSTATEGP, FLSTGPDSC, FLSTATEDCT, FLSTDCTDSC, FLSTATEREL, FLTRANSITN, FLTRANSDSC, FLCOMPOSE |