Configure authorization for foreign bus connections to enable buses to forward messages to foreign buses. You must perform this task using the wsadmin client.
Before you begin
To configure authorization for foreign bus connections, you must use the WebSphere
® Application Server wsadmin client. See Starting the wsadmin client
About this task
You can authorize foreign bus connections by running the addUserToForeignBusRole
command in the wsadmin client. The command needs to be run on both servers involved in the link.
You must take care to connect to the correct server when running the command.
To configure authorization for foreign bus connections:
- Run the following command on the application server that has a foreign bus defined for the news repository server:
AdminTask.addUserToForeignBusRole(' [-bus <busName>
-foreignBus <foreignBusName> -role <roleName>
The command takes the following parameters:
Table 1. Parameters for the addUserToForeignBusRole command
|- bus||The name of the bus on the server.|
|- foreign bus||The name of the foreign bus.|
|- role||This is always set to Sender.|
|- user||The user name defined in step 1 of the topic, Preparing to create bus links.|
AdminTask.addUserToForeignBusRole(' [-bus Connections_ActivitiesServer_Bus -foreignBus Connections_NewsServer_Bus -role Sender -user firstname.lastname@example.org]')
- Using the wsadmin tool, connect to the server hosting the news repository and run the command from step 1.
AdminTask.addUserToForeignBusRole(' [-bus Connections_NewsServer_Bus -foreignBus Connections_ActivitiesServer_Bus -role Sender -user email@example.com]')
What to do next
Repeat the steps above for every application server in your configuration to link it to the server hosting the news repository.
Updating the messaging bus configuration when the connectionsAdmin user ID changes