addSIBusMember command
To add a member to a service integration bus use the command addSIBusMember with the AdminTask object of the wsadmin scripting client.
A bus member can be...
- appserver
- WebSphere MQ server
- server cluster
For a list of the available service integration bus commands in Jython...
print AdminTask.help('SIBAdminCommands')
For overview help on a given command...
print AdminTask.help('command_name')
Save changes to the master configuration...
AdminConfig.save()
Purpose
When an application server is added as a member of a bus, a messaging engine with default settings is created automatically.
When a cluster is added as a member of a bus, if messaging engine policy assistance is not enabled, a messaging engine with default settings is created automatically. If messaging engine policy assistance is enabled and the high availability messaging engine policy type is specified, a messaging engine with settings that support the high availability policy is created automatically.
If messaging engine policy assistance is enabled and the scalability, or scalability with high availability, messaging engine policy type is specified, one messaging engine with settings that support the selected policy is created automatically. You must then use createSIBEngine to create additional messaging engines (one for each appserver in the cluster).
For each new messaging engine, the settings that support the selected policy are created automatically.
If you use addSIBusMember with messaging engine policy assistance enabled and the custom messaging engine policy type specified, set the behavior for the first messaging engine, then use createSIBEngine to create additional messaging engines.
When a MQ server is added as a member of a bus, a server proxy is created that can override the parent connection properties (host, port, channel, and SSL security configuration alias) defined in the MQ server. By this means, a different set of connection properties can be assigned to each bus membership.
Target object
None.
A bus member object is created. If the bus member is a server or a server cluster, a messaging engine is also created.
Required parameters
- -bus bus_name
- The name by which the service integration bus is known. We can use listSIBuses to list the names of existing buses.
Conditional parameters
- -node node_name
- -server server_name
- To add an appserver as a bus member, specify both the name of the node on which the server runs, and the name of the server.
If specify these parameters, do not specify the -cluster or -wmqServer parameters.
- -cluster cluster_name
- To add a server cluster as a bus member, specify the name of the cluster.
If you specify this parameter, do not specify the -node, -server, or -wmqServer parameters.
- -wmqServer
- To add a MQ server as a bus member, specify the name of the MQ server. This is the name that was specified in the -name parameter when the MQ server was created.
If you specify this parameter, do not specify the -cluster, -node, or -server parameters.
Optional parameters
- -description text
- An optional description for the bus member, for administrative purposes.
- -virtualQueueManagerName
- The override value for the name of the MQ server virtual queue manager.
When sending messages to MQ, the MQ gateway queue manager sees the bus as a remote queue manager. The virtual queue manager name is the name that is passed to MQ as the name of this remote queue manager.
The default value is the name of the bus. If this value is not a valid name for a MQ queue manager, or if another MQ queue manager already exists that has the same name, then replace the default value with another value that is a valid and unique name for a MQ queue manager. To be valid, the name must meet the following criteria:
- It must contain between 1 and 48 characters.
- It must conform to the MQ queue naming rules (see the MQ topic Rules for naming MQ objects).
- -host
- The override value for the MQ server bus member host attribute. This value is the host name or IP address of the host to which a connection is established to communicate with a queue manager or queue-sharing group. Use this parameter if the -wmqServer parameter is specified.
- -port
- The override value for the MQ server bus member port attribute. The port number is monitored by a queue manager listener or queue-sharing group listener, which is listening for connections. The default value is 1414. Use this parameter if the -wmqServer parameter is specified.
- -channel
- The override value for the MQ server bus member channel attribute. This is the name of the server connection channel that is used to establish a connection to the MQ queue manager or MQ for z/OS queue sharing group. The default value is SYSTEM.DEF.SVRCONN. Use this parameter if the -wmqServer parameter is specified.
- -securityAuthAlias
- The override value for the MQ server bus member securityAuthAlias attribute.
This is the authentication alias that is supplied when connecting to the MQ server. This parameter has no default. Use this parameter if the -wmqServer parameter is specified.
- -transportChain
- The override value for the MQ server bus member transportChain attribute. This is the name of the transport chain to use when communicating with MQ. The default value is...
OutboundBasicWMQClientUse this parameter if the -wmqServer parameter is specified.
- -trustUserIds TRUE | FALSE
- The override value for the MQ server bus member trustUserIds attribute. This determines whether user IDs that are received in messages from MQ are propagated into messages. The application user ID is always set from the value:
jsAppUserIdRFH2If this is not present (either because the key/value pair is not present in the <sib> folder of the RFH2 header, or because the message does not have a RFH2 header), this field is not set. This parameter has two possible values:
- TRUE
- User IDs are propagated into messages.
- FALSE
- User IDs are not propagated into messages.
The default value is TRUE. Use this parameter if the -wmqServer parameter is specified.
- -enableAssistance TRUE | FALSE
- Whether to enable messaging engine policy assistance. This parameter has two possible values:
- TRUE
- Messaging engine policy assistance is enabled. Supply a -policyName parameter.
- FALSE
- Messaging engine policy assistance is not enabled. This is the default value. Use this parameter if the -cluster parameter is specified.
- -policyName HA | SCALABILITY | SCALABILITY_HA | CUSTOM
- The type of messaging engine policy to apply to the cluster. This parameter has four possible values:
- HA
- Apply the high availability messaging engine policy to the cluster.
- SCALABILITY
- Apply the scalability messaging engine policy to the cluster.
- SCALABILITY_HA
- Apply the scalability with high availability messaging engine policy to the cluster.
- CUSTOM
- Apply the custom messaging engine policy to the cluster.
This parameter has no default. Use this parameter if the -cluster parameter is specified and the -enableAssistance parameter is set to TRUE.
- -failover TRUE | FALSE
- Whether the messaging engine in the cluster can fail over to another server in the cluster if the host server for the messaging engine fails. This parameter has two possible values:
- TRUE
- The messaging engine can fail over.
- FALSE
- The messaging engine cannot fail over.
The default value is FALSE. Use this parameter if the -cluster parameter is specified, the -enableAssistance parameter is set to TRUE, and the -policyName parameter is set to CUSTOM.
- -failback TRUE | FALSE
- Whether the messaging engine in the cluster that has failed over can fail back to a more preferred server in the preferred servers list if that server becomes available again. This parameter has two possible values:
- TRUE
- The messaging engine can fail back. If you use this option, supply a -preferredServerList parameter.
- FALSE
- The messaging engine cannot fail back.
The default value is FALSE. Use this parameter if the -cluster parameter is specified, the -enableAssistance parameter is set to TRUE, and the -policyName parameter is set to CUSTOM.
- -preferredServersOnly TRUE | FALSE
- Whether the messaging engine in the cluster can run only on servers in the preferred servers list, or on any server in the cluster. This parameter has two possible values:
- TRUE
- The messaging engine can run only on servers in the preferred servers list. If you use this option, supply a -preferredServerList parameter.
- FALSE
- The messaging engine can run on any server in the cluster.
The default value is FALSE. Use this parameter if the -cluster parameter is specified, the -enableAssistance parameter is set to TRUE, and the -policyName parameter is set to CUSTOM.
- -preferredServerList {{node_name server_name}}
- The list of servers, in order of preference, on which the messaging engine in the cluster prefers to run. For each server in the list, specify both the name of the node on which the server runs, and the name of the server. There is no default value for this parameter. Use this parameter if the -cluster parameter is specified, the -enableAssistance parameter is set to TRUE, and the -policyName parameter is set to CUSTOM.
- -fileStore
- Create a file store to use as a message store for the messaging engine. A file store is a type of message store that directly uses files in a file system through the operating system. The alternative is to use a data store.
See the related links.
- -logSize logsize
- The size of the log file in MB. Use this parameter if the -fileStore parameter is specified.
- -logDirectory logdirectoryname
- The name of the log file directory if you do not want to use the default log directory. Use this parameter if the -fileStore parameter is specified.
- -minPermanentStoreSize minpermanentstoresize
- The minimum size of the permanent store file in MB. Use this parameter if the -fileStore parameter is specified.
- -minTemporaryStoreSize mintemporarystoresize
- The minimum size of the temporary store file in MB. Use this parameter if the -fileStore parameter is specified.
- -maxPermanentStoreSize maxpermanentstoresize
- The maximum size of the permanent store file in MB. Use this parameter if the -fileStore parameter is specified.
- -maxTemporaryStoreSize maxtemporarystoresize
- The maximum size of the temporary store file in MB. Use this parameter if the -fileStore parameter is specified.
- -unlimitedPermanentStoreSize TRUE | FALSE
- Whether the permanent store size is unlimited. This parameter has two possible values:
- TRUE
- The permanent store size is unlimited.
- FALSE
- The permanent store size is limited. If you use this option, supply a -maxPermanentStoreSize parameter.
Use this parameter if the -fileStore parameter is specified.
- -unlimitedTemporaryStoreSize TRUE | FALSE
- Whether the temporary store size is unlimited. This parameter has two possible values:
- TRUE
- The temporary store size is unlimited.
- FALSE
- The temporary store size is limited. If you use this option, supply a -maxTemporaryStoreSize parameter.
Use this parameter if the -fileStore parameter is specified.
- -permanentStoreDirectory permanentstoredirectoryname
- The name of the permanent store directory if you do not want to use the default permanent store directory. Use this parameter if the -fileStore parameter is specified.
- -temporaryStoreDirectory temporarystoredirectoryname
- The name of the temporary store directory if you do not want to use the default temporary store directory. Use this parameter if the -fileStore parameter is specified.
- -dataStore
- Create a data store to use as a message store for the messaging engine.
A data store consists of the set of tables that a messaging engine uses to store persistent data in a database. All the tables in a data store are held in the same database schema. We can create multiple data stores in the same database, provided that you use a different schema name for each data store.
The alternative is to use file store (the default).
See the related links.
- -createDefaultDatasource TRUE | FALSE
- Whether to create a default data source when the messaging engine is created. This parameter has two possible values:
- TRUE
- Create a default data source.
- FALSE
- Do not create a default data source.
Use this parameter if the -dataStore parameter is specified. Do not use this parameter if the -cluster parameter is specified.
- -datasourceJndiName jndiname
- The JNDI name of the data source that the messaging engine uses to access the relational database management system (RDBMS) for the data store. Use this parameter if the -dataStore parameter is specified.
- -authAlias authalias
- The name of the authentication alias that the messaging engine uses to connect to the database in its data store. Use this parameter if the -dataStore parameter is specified.
- -createTables datasource
- Create the database tables for the specified data source automatically. If this option is not specified, the database administrator must create the tables. Use this parameter if the -dataStore parameter is specified.
- -schemaName schemaname
- The name of the database schema that contains the tables for the data store, if you do not want to use the default schema name. For details about the default schema, see Create users and schemas in the database. Use this parameter if the -dataStore parameter is specified.
- -initialHeapSize size
- The initial Java™ virtual machine (JVM) heap size, in megabytes, of the server or of each server in a cluster. There is no default value. If this parameter is not specified, no change is made. If this parameter is specified, the supplied value must be greater than or equal to zero and less than or equal to 2048. If the parameter is supplied without a value, an error message is generated.
- -maxHeapSize size
- The maximum JVM heap size, in megabytes, of the server or of each server in a cluster. There is no default value. If this parameter is not specified, no change is made. If this parameter is specified, the supplied value must be greater than or equal to zero and less than or equal to 2048. If the parameter is supplied without a value, an error message is generated.
Example
Add a server1 on node1 as a member of bus1 with a default file store.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 ]')Add server1 as a member of bus1, and use a file store to save messages.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 -fileStore ]')Add server1 as a member of bus1, and use a file store to save messages, with options.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 -fileStore -logSize 100 -logDirectory C:\filestore1 ]')Add server1 as a member of bus1, and use a data store to save messages.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 -dataStore ]')Add server1 as a member of bus1, and use a data store to save messages, with options.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 -dataStore -createDefaultDatasource true -datasourceJndiName myjndi]')Add cluster1 to bus1 without using messaging engine policy assistance and use a file store as the message store for the messaging engine.
AdminTask.addSIBusMember('[-bus bus1 -cluster cluster1 -filestore true -logDirectory C:\filestore1 -permanentStoreDirectory C:\filestore2 -temporaryStoreDirectory C:\filestore3]')Add cluster1 to bus1 and use messaging engine policy assistance and the high availability messaging engine policy. Use a file store as the message store for the messaging engine.
AdminTask.addSIBusMember('[-bus bus1 -cluster cluster1 -enableAssistance true -policyName HA -fileStore -permanentStoreDirectory C:\myfilestore1 -temporaryStoreDirectory C:\myfilestore1 -logDirectory C:\myfilestore ]')Add cluster1 to bus1 and use messaging engine policy assistance and the custom messaging engine policy. Use a file store as the message store for the messaging engine. Set the messaging engine to fail over, not to fail back, and to run only on server1 and server2.
AdminTask.addSIBusMember('[-bus bus1 -cluster cluster1 -enableAssistance true -policyName CUSTOM -fileStore -permanentStoreDirectory C:\myfilestore1 -temporaryStoreDirectory C:\myfilestore1 -logDirectory C:\temp\myfilestore -failover true -failback false -preferredServersOnly true -preferredServerList [[node1 server1] [node2 server2]]]')Change the initial JVM heap size to 256 and the maximum JVM heap size to 512.
AdminTask.addSIBusMember('[-bus bus1 -node node1 -server server1 -initialHeapSize 256 -maxHeapSize 512]')
Last updated Nov 10, 2010 8:23:07 PM CST