Once you have implemented your inventory manager, the next step is configuring the rest of Oracle ATG Web Commerce to work with it.

First, change the InventoryManager component in atg/commerce/inventory/.

Out-of-the-box, the class used by this component is RepositoryInventoryManager. Change the first line to read;

$class=mypackage.MyInventoryManager

If you have not changed any of the other references to InventoryManager, this should be the only change necessary. By default, CachingInventoryManager uses this Nucleus component because its uncached inventory manager and all other components refer to one of these two components. Because your new class implements the InventoryManager interface, it can be used throughout Commerce.

If you change any other links, make the appropriate adjustments. The following properties refer to the InventoryManager: