Managed object metadata
Information about a node, such as operating system platform and product features, is maintained in the configuration repository in the form of properties. As product features are installed on a node, new property settings are added.
WAS system management uses the managed object metadata properties as follows:
- To display the node version in the admin console
- To ensure that new configuration types or attributes are not created or set on older release nodes
- To ensure that new resource types are not created on old release nodes
- To ensure that new applications are not installed on old release nodes because the old run time cannot support the new applications
Base properties
The following base property keys are defined for WAS:
com.ibm.websphere.baseProductVersion: The version of WAS that is installed.
com.ibm.websphere.nodeOperatingSystem: The operating system platform on which the node runs.
com.ibm.websphere.deployed.features: A list of features that extends a profile. An example of a feature is an admin console plug-in.
Here are examples of metadata property values. The com.ibm.websphere.deployed.features metadata property value is split on multiple lines for printing purposes.
com.ibm.websphere.baseProductVersion=7.0.0.0 com.ibm.websphere.deployed.features= com.ibm.ws.base_6.0.0.0,com.ibm.ws.j2ee_6.0.0.0, com.ibm.ws.uddi_6.0.0.0,com.ibm.ws.wsgateway_6.0.0.0
[AIX]com.ibm.websphere.nodeOperatingSystem=aix
[Linux]com.ibm.websphere.nodeOperatingSystem=linux
[HP-UX]com.ibm.websphere.nodeOperatingSystem=hpux
[Solaris]
com.ibm.websphere.nodeOperatingSystem=solaris
(Windows)
com.ibm.websphere.nodeOperatingSystem=windowsFor detailed information on metadata properties, view the ManagedObjectMetadataHelper class in the APIs documentation.Accessing managed object metadata properties
An administrator can query managed object metadata through the wsadmin tool or Application Server APIs. They can additionally be viewed on the Node Installation properties admin console panel. This article provides details on the appserver API method.
An accessor class is used to obtain the managed object metadata properties.
An accessor instance is created through its factory. A helper class, which uses the accessor instance, makes it easy to query the base metadata properties.
These classes are all part of the com.ibm.websphere.management.metadata package in the appserver API documentation. The specific names of these classes are:
- com.ibm.websphere.management.metadata.ManagedObjectMetadataHelper
- com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessor
- com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessorFactory
Related concepts
Additional Application Programming Interfaces (APIs)
Related tasks
Manage nodes Set up the admin architecture
Getting started with scripting
Use admin programs (JMX)
Related
Node installation properties