Example: Showing attributes with the AdminConfig object
In the wsadmin tool, the AdminConfig attributes object displays configuration object types, or object metadata, and does not represent a particular configuration object. This article discusses using the metadata information to show configuration objects.
- Showing simple attributes
Each attribute in a configuration object is represented as a {name value} list.
$AdminConfig show $myEndPoint {host port} {host myHost} {port 1234}The example configuration object has two attributes. The value of the name attribute is myHost. The value of the port attribute is 1234.
- Showing attributes with subtypes
For example, this show command returns:
$AdminConfig show $myex8 {name Halibut} {beast myfish(cells/mycell/adocument.xml#FishType_1)}The name of the second attribute displays as beast. The value of beast for this particular ExampleType8 object has type FishType.
- Showing string list attributes
Several attributes on various objects have type String*. The String* type is a list of strings. These attributes can represent class paths, for example:
$AdminConfig show $obj1 classpath {classpath c:/mine/one.jar;c:/two.jar;f:/myother/three.jar}