This is a simple Java Service to get the outstanding events count from the UM Channel (Publishable Doc Type) and the same can be enhanced to get the outstanding events count for queue/topic. Make sure to import the below jars into your java project for compilation.
\UniversalMessaging\lib\nAdminAPI.jar
\UniversalMessaging\lib\nClient.jar
Input:
realmURL (eg., nsp://localhost:9001)
channelName (eg., Default:pubDoc)
==================================================================================================================
Output:
outstandingEvents
==================================================================================================================
import com.wm.data.*;
import com.wm.util.Values;
import com.wm.app.b2b.server.Service;
import com.wm.app.b2b.server.ServiceException;
import com.pcbsys.nirvana.client.nIllegalArgumentException;
import com.pcbsys.nirvana.client.nSessionAttributes;
import com.pcbsys.nirvana.nAdminAPI.nAdminIllegalArgumentException;
import com.pcbsys.nirvana.nAdminAPI.nBaseAdminException;
import com.pcbsys.nirvana.nAdminAPI.nLeafNode;
import com.pcbsys.nirvana.nAdminAPI.nNode;
import com.pcbsys.nirvana.nAdminAPI.nRealmNode;
==================================================================================================================
Let me know if you have any questions.