Information Management IBM InfoSphere Master Data Management, Version 11.3

Understanding the ConfigContext class and public Node getConfigItemsMap() method

Be familiar with the class and method for the Configuration and Management components. The method retrieves information from the context.

The ConfigContext class is used to establish a read-only configuration context in which the configuration is guaranteed not to change for as long as the context is maintained. This is useful for clients that need to ensure that all the code executing under the same transaction will have a consistent view of the configuration, independent of changes to the configuration external to the transaction.
Note: The context only applies within the same process (JVM) in which it was created.

For transactions that execute across many processes, the client is responsible for ensuring a consistent view of the configuration, possibly by passing those configuration values through all the method calls in the transaction.

The public Node getConfigItemsMap() method retrieves the map of the configuration corresponding to the context.



Last updated: 27 June 2014