Broker 10.5 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Client Groups | Listing Client Identifiers by Group
Listing Client Identifiers by Group
The BrokerAdminClient.getClientIdsByClientGroup method lets you obtain a list of all client identifiers belonging to a particular client group.
The following example illustrates how to list client identifiers by client group:
. . .
int i;
String client_ids[];
BrokerAdminClient c;
try {
/* Create a Broker admin client */
c = new BrokerAdminClient(broker_host, broker_name, null,
client_group, "My Broker Monitor",null);
/* Get a list of all client IDs for a client and print them out */
client_ids = c.getClientIdsByClientGroup(“myGroup”);
for(i = 0; i < client_ids.length; i++) {
} catch (BrokerException ex) {
System.out.println("Error while getting the client IDs by group\n"+ex);
. . .