Hello,
i’m new to the webMethods 10.5 version and i’m trying to migrate a java service that returned in 9.12 version the number of pending events of a channel this way :
nChannelAttributes channelAttributes =new nChannelAttributes(channelName);
nChannel channel = mySession.findChannel(channelAttributes);
channelNamedObject = channel.getNamedObjects()[0].getName();
nbPendingEvents = channel.getLastEID()- channel.getNamedObjects()[0].getEID();
Since getNamedObjects is deprecated 9.12+, i used DurableManager.getAll() like this :
nChannelAttributes channelAttributes =new nChannelAttributes(channelName);
nChannel channel = mySession.findChannel(channelAttributes);
nDurableManager durableManager = channel.getDurableManager();
channelNamedObject = durableManager.getAll()[0].getName();
// nbPendingEvents = channel.getLastEID()- durableManager.getAll()[0].getEID();
nbPendingEvents = channel.getEventCount();
the problem is that returns always 0 for nbPendingEvents. By the way, I am not sure I understand the notion of Durables and shared Durables.
Every hint or redirection to the right documentation are welcome !
Thank you
#Universal-Messaging-Broker#webMethods