Using wsadmin to Configure Oracle Fusion Middleware 4-5
To exit the wsadmin utility after completing a configuration session, enter exit.
4.3 Adding an Oracle Fusion Middleware Product to a Cell
Example 4–1 demonstrates how to add an Oracle Fusion Middleware product to a cell.
To add a product, you select the appropriate product template JAR file. The template JAR files that are used to configure your products in a cell are included with your
product installation in the ORACLE_COMMON_HOMEcommontemplateswas directory.
Example 4–1 Adding a Product to a Cell
Get the location of the ORACLE_COMMON_HOME directory. commonHome = java.lang.System.getPropertyCOMMON_COMPONENTS_HOME
Start Oracle Fusion Middleware product configuration. OracleMWConfig.
startConfig Specify the path to the templates being applied to the cell.
In this example, the SOA Management template is selected. To specify another template, enter the appropriate template name. You can include multiple
OracleMWConfig.selectTemplate commands to select multiple templates. OracleMWConfig.
selectTemplate commonHome + commontemplateswasoracle.soa.mgmt_
template_11.1.1.jar Load all the templates that are selected in the current configuration session.
OracleMWConfig.loadTemplates Apply all newly loaded templates and save the changes to the cell.
OracleMWConfig.
endConfig
4.4 Adding a New Server to a Cell
Example 4–2 demonstrates how to add a new server to a cell. It also demonstrates how
to configure and validate the end points on the new server.
Example 4–2 Adding a New Server to a Cell
Create a new server. atts = []
atts.append[Name,Myserver] atts.append[NodeName,TEST01Node01]
atts.append[DevelopmentMode,true] newServer = OracleMWConfig.
create Server,atts
List the attributes and types supported for the server type. newServer.show
[ar-] Name [Myserver] [ar-] NodeName [TEST01Node01]
[arw] DevelopmentMode [true] [trw] ListenerAddress
Caution: If you do not use the endConfig command to end your
configuration session, any changes you made during the session will not be saved.
4-6 Configuration Guide for IBM WebSphere Application Server
Create the listener address listenerAddress = newServer.
create ListenerAddress,None
List the attributes and types supported for the listener address type. listenerAddress.show
Output: [trw] AdminListenerAddress
[trw] AdminSSLListenerAddress [trw] HttpListenerAddress
[trw] HttpsListenerAddress [trw] SoapListenerAddress
[trw] SibListenerAddress [trw] SibSSLListenerAddress
[trw] BootstrapListenerAddress Create and set ports and hosts for the end points.
atts = [] atts.append[Host,localhost]
atts.append[Port,9000] endpoint = listenerAddress.
create HttpListenerAddress,atts
atts = [] atts.append[Host,localhost]
atts.append[Port,9001] endpoint = listenerAddress.
create AdminListenerAddress,atts
Validate the ports check for port conflicts. OracleMWConfig.
validateConfig InternalPortConflict
OracleMWConfig. validateConfig
ExternalPortConflict
4.5 Configuring Host and Port Settings for End Points