Fork me on GitHub
tornjak from Betfair

{toc}

How do I use batchquery.jsp?

To query the properties of an object you need to know the Object Name|http://java.sun.com/j2se/1.5.0/docs/api/javax/management/ObjectName.html. Given the object name such as **Monitoring.Facade.Orbis:name=AccountService** you can use it like so: http://hostwithservice/servicename/admin/batchquery.jsp?on=Monitoring.Facade.Orbis:name=AccountService

What is that weird output produced by batchquery.jsp?

Right, for the previous example you will get something like: Monitoring.Facade.Orbis:name=AccountService~Name~AccountService~LastFailureTime~0~LastSuccessTime~1221579907204~FailureCount~0~LastException~~StatusAsString~OK~ErrorCountingPolicy~com.betfair.games.orbisfacade.monitoring.AndErrorPolicy@4842c1b0 This is a ’~’ delimited property-value list. There is a tool which reads and dispalys this information in a user friendly way (it can do more that) called jmx-client. It’s source is in perforce/se/research/platform/utils/jmx-client and the people who seem to know something about are Matthew Searle and Joe Stapleton.

As a developer, how do I make and test changes to the monitoring-overlay JSPs?

This small guide assumes Windows. It’ll be much the same on Linux except with different paths.