Example: Migrating - Creating an application server
Create an application server involves a configuration command. To do this task in wscp V4.0 and wsadmin V5.0, know the hierarchical name of the application server. The following examples demonstrate how to create an application server in the WebSphere Application Server V4.0 and V5.0:
- wscp V4.0
ApplicationServer create /Node:mynode/ApplicationServer:myserv/ -attribute {{Stdout myfile.out}}- wsadmin V5.0
Server objects are contained within nodes.
set node [$AdminConfig getid /Node:mynode/] $AdminConfig create Server $node {{name myserv} {outputStreamRedirect {{fileName myfile.out}}}} $AdminConfig savewhere Stdout is the name of the V4.0 ApplicationServer attribute that is replaced by the fileName attribute, embedded within the outputStreamRedirect attribute of the server.