5-12 Configuration Guide for IBM WebSphere Application Server
Oracle CIE Core:11.1.1.0 Oracle JRF:11.1.1.0
Oracle SOA Suite:11.1.1.0 CFGFWK-24024: Currently selected templates:
None
5.1.20 startConfig
Starts the configuration session by reading relevant data from the cell. You may have to wait several minutes for the cell configuration to load.
Syntax
OracleMWConfig.startConfig
Example This example shows the output for startConfig when the cell is successfully
loaded.
OracleMWConfig.startConfig CFGFWK-24012: Loaded cell configuration.
5.1.21 storeObject
Stores the specified value with the specified key in the configuration sessions ObjectStore
for later use in the session. The value for a key can be retrieved using retrieveObject
.
Syntax
OracleMWConfig.storeObjectkey, value
Example The following example creates the adminServer object, and then stores this object as
Admin .
adminServer = OracleMWConfig.getChildByNameServer,OracleAdminServer OracleMWConfig.storeObjectAdmin,adminServer
5.1.22 suppressException
Use this command only in interactive mode. It suppresses exceptions for a cleaner display. See
Section 5.1.6, dumpStack, for information about how to retrieve error
information when suppressing exceptions. When exceptions are suppressed, the exceptions are cached and can be retrieved using dumpStack. The exception cache
is reset for each wsadmin command that is executed.
Syntax
OracleMWConfig.suppressExceptionssuppressExceptions
Argument Definition
key The object key
value The value to assign to this key
wsadmin Command Reference 5-13
Example The following example prevents exceptions from being displayed in the console when
an error occurs.
suppressExceptions = 1 OracleMWConfig.suppressExceptionssuppressExceptions
5.1.23 unassign
Unassigns the specified application, service, library, or server from the specified target. See
assign for related information.
Syntax
OracleMWConfig.unassigntype, name, wrapper, atts = []
Example The following example unassigns the server server1 from the cluster cluster1.
serverName = server1 clusterName = cluster1
cluster1 = OracleMWConfig.getChildByNameServerCluster, clusterName OracleMWConfig.unassignServer, serverName, cluster1
5.1.24 validateConfig
Validates the configuration according to the specified option.
Syntax
OracleMWConfig.validateConfigoptionName
Argument Definition
suppressExceptions Set this value to 1 to suppress exceptions. Set this value to 0 to
display exceptions.
Argument Definition
type The type of element to be unassigned. Valid types are:
■
Server
■
Library
■
CustomService
■
Application name
The name of the element to be unassigned wrapper
The wrapper object a server or cluster, depending on the type being unassigned
atts An optional list of attributes of the element to be unassigned
5-14 Configuration Guide for IBM WebSphere Application Server
Examples The following example checks for internal port conflicts, with a successful result.
OracleMWConfig.validateConfigInternalPortConflict validateConfig InternalPortConflict
succeed: validateConfig InternalPortConflict
The following example checks for external port conflicts, with a successful result. OracleMWConfig.validateConfigExternalPortConflict
validateConfig ExternalPortConflict succeed: validateConfig ExternalPortConflict
5.2 OracleMWConfigUtilities Commands