While learning OSB, I'm trying to run ServiceStatisticsRetriever.java code sample from http://docs.oracle.com/cd/E23943_01/admin.1111/e15867/app_jmx_monitoring.htm#CEGFFBFG. It only works if I use an account with admin privileges and I get my statistics back. If I however, run it using read-only account (with which I can view OSB metrics via admin console - we have 10gR3), I get an error:
Access not allowed for subject: principals=[itmonitor, Monitors, IntegrationMonitors, AdminChannelUsers, Deployers, IntegrationDeployers], on ResourceType: com.bea.wli.monitoring.ServiceDomainMBean Action: execute, Target: getProxyServiceStatistics
I can't figure out what I'm doing wrong.
Any help is greatly appreciated.
Thank you, Roman