InfoCenter Home > 6.6.0.2.2.2.9: Specifying object namesIn the console, simple names such as myAppServer or dataSource1 are used to specify object names. However, in the repository, object names are stored as fully qualified names. Fully qualified names are required when using wscp. Fully qualified names reflect an object's containment hierarchy. Containment determines how resources are related to one another. For example, a node can contain application servers. An enterprise application contains one or more modules. Containment represents a hierarchical naming structure. This structure prevents name clashes between objects that have the same name but belong to different containment hierarchies. A resource's position in the containment structure is used to generate the resource's full, unique name within the repository. Examples of containment hierarchies are:
Containment is also used for efficient operations: starting a contained resource starts the resources above it in the hierarchy. Containment is also used to impose restrictions on relationships. Fully qualified names have the form /objectType:objectInstance/. . . /. For example, if the application server named AppServ1 runs on the node named Node1, the repository name of the application server reflects this hierarchy. The name of the application server, /Node:Node1/ApplicationServer:AppServ1/, is a fully qualified name. Some objects, for example Node objects, do not belong to a containment hierarchy. These objects are known as root types. An example of a fully qualified name for the Node object named myNode is /Node:myNode/.
To reduce typing and for readability of scripts, use variables to store a full or partial name of an object. For example, the following commands set variables for the name of a node, server, container, and bean. These variables can then be used in building other object names: set node "Node:my-Pc" set serv "/${node}/ApplicationServer:myServer/" The braces are required so that the remaining part of the object name is not considered part of the variable name. Elsewhere, the variable names can be used as shown in the following example: wscp> ApplicationServer create $serv The containment operation lists the containment hierarchy for a specified object type. This operation is useful for determining the required elements in a fully qualified name. The syntax is as follows: object_type containment The following example command displays the containment hierarchy for the Module object type: wscp> Module containment EntepriseApp Module |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|