Broker document subscriber issue


I am using webMethods API to inspect a broker document subscriber health condition.Below is the sample code.

BrokerClient bkrClient = BrokerClient.newOrReconnect(“brokerhost”,“broker”,“client”,“IntegrationServer”,"IntegrationServer ",null);

BrokerEvent[] bkrEvents = bkrClient.getEvents(2000, BrokerClient.DO_NOT_ACK,20000);

for(int i=0; i < bkrEvents.length; i++)

The above code is getting only 160 events as output though I have 2500 events in the broker subscriber queue.

Any thoughts on this issue


You should probably use BrokerAdminClient.getClientStatsById instead. That gives you several statistical values, including the number of events queued.