Example: Migrating - Creating a server group
In WAS V6.x, 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 WAS V4.0 and V6.x. 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 V6.x
set serverid [$AdminConfig getid /Node:mynode/Server:as1/] $AdminConfig convertToCluster $serverid MyCluster $AdminConfig saveserverid = AdminConfig.getid('/Node:mynode/Server:as1/') AdminConfig.convertToCluster(serverid, 'MyCluster') AdminConfig.save()
See Also
Commands for the AdminConfig object