You can use the configSCAJMSForServer instead of the administrative console to configure a specific server 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 configSCAJMSForServer 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 configSCAJMSForServer command to prepare a server 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 server mySCAAppServer on node NYServerFarm for SCA JMS using the remote messaging engine NJMECluster:
AdminTask.configSCAJMSForServer('[-serverName mySCAAppServer
-nodeName NYServerFarm -remoteMELocation WebSphere:cluster=NJMECluster
-meAuthAlias mySCAAlias -appBusSchemaName NYSysSchema]')
$AdminTask configSCAJMSForServer {-serverName mySCAAppServer
-nodeName NYServerFarm -remoteMELocation WebSphere:cluster=NJMECluster
-meAuthAlias mySCAAlias -appBusSchemaName NYSysSchema}
The following example illustrates how to configure the server newSCAAppServer on node bgmServerFarm for SCA JMS using a local messaging engine.
AdminTask.configSCAJMSForServer('[-serverName newSCAAppServer
-nodeName bgmServerFarm
-appBusDataSource jdbc/com.ibm.ws.sib/SCA.APPLICATION.bgmServerFarm.Cell.Bus
-appBusSchemaName BGMSysSchema]')
$AdminTask configSCAJMSForServer {-serverName newSCAAppServer
-nodeName bgmServerFarm
-appBusDataSource jdbc/com.ibm.ws.sib/SCA.APPLICATION.bgmServerFarm.Cell.Bus
-appBusSchemaName BGMSysSchema}