Use the configSCAJMSForCluster command instead of the administrative console to configure a cluster to run Service Component Architecture (SCA) applications that use JMS resources. You can specify a number of commands in a file to batch a large number of configurations without having to navigate the administrative console panels.
The configSCAJMSForCluster command is run using the AdminTask object of the wsadmin scripting client.
AdminTask.help('[SCAAdminCommands]')
$AdminTask help SCAAdminCommands
wsadmin> $AdminTask help command_name
AdminTask.help('[command_name]')
$AdminTask help command_name
Use the configSCAJMSForCluster command to prepare a cluster to support SCA applications that use JMS resources. This wsadmin command is an alternative to using the administrative console to perform the configuration.
AdminConfig.save()
$AdminConfig save
The following example illustrates how to configure the cluster mySCAAppCluster for SCA using the remote messaging engine NJMECluster:
AdminTask.configSCAJMSForCluster('[-clusterName mySCAAppCluster
-remoteMELocation WebSphere:cluster=NJMECluster -meAuthAlias mySCAAlias
-appBusSchemaName NYSysSchema]')
$AdminTask configSCAJMSForCluster {-clusterName mySCAAppCluster
-remoteMELocation WebSphere:cluster=NJMECluster -meAuthAlias mySCAAlias
-appBusSchemaName NYSysSchema}
The following example illustrates how to configure the cluster newSCAAppCluster on node bgmCluster for SCA using a local messaging engine.
AdminTask.configSCAJMSForCluster('[-clusterName newSCAAppCluster
-busDataSource jdbc/localBus -appBusSchemaName BGMSysSchema]')
$AdminTask configSCAJMSForCluster {-clusterName newSCAAppCluster
-busDataSource jdbc/localBus -appBusSchemaName BGMSysSchema}