My Oracle Support Banner

OSB GetStatistics Via WLST Doesn't Work - AttributeError: 'javainstance' (Doc ID 2760864.1)

Last updated on MARCH 16, 2021

Applies to:

Oracle Service Bus - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Goal

On : 12.2.1.4.0 version, OSB Documentation

OSB getStatistics via WLST doesn't work - AttributeError: 'javainstance'

How to use getStatistics for returning Proxy/Business runtime metrics via WLST.
Instruction given in Error In Call GetProxyServiceStatistics On ServiceDomain Inside Wlst Script (Doc ID 2675643.1) doesn't work when replacing getProxyServiceStatistics with getStatistics.
The best way would be to provide a snippet.

My test:
from com.bea.wli.sb.management.configuration import ALSBConfigurationMBean
from com.bea.wli.config import Ref
from com.bea.wli.monitoring import ServiceDomainMBean
from com.bea.wli.monitoring import ResourceType
wls:/cbc-osb-dev03/domainRuntime/DomainServices/ServiceDomain> allRefs = alsbCore.getRefs(Ref.DOMAIN)
wls:/cbc-osb-dev03/domainRuntime/DomainServices/ServiceDomain> for ref in allRefs:
... props = cmo.getStatistics([ref],ResourceType.SERVICE.values(),'')
... print props
...
Traceback (innermost last):
  File "", line 2, in ?
AttributeError: 'javainstance' object has no attribute 'getStatistics'
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.