Example: Migrating - Creating a server group
In the WebSphere Application Server V5.0, ServerClusters have replaced V4.0 ServerGroups. The members of a cluster are servers with identical application configurations. The following examples demonstrate how to create a server group in the WebSphere Application Server V4.0 and V5.0. They assume that an application server named as1 already exists and is used as the first clone in a server group:
- wscp V4.0
ServerGroup create /ServerGroup:sg1/ -baseInstance /Node:mynode/ApplicationServer:as1/ -serverGroupAttrs {{EJBServerAttributes {{SelectionPolicy roundrobin}}}}- wsadmin V5.0
set serverid [$AdminConfig getid /Node:mynode/Server:as1/] $AdminConfig convertToCluster $serverid MyCluster