On 2 March 2013 10:42, Ian Boston <[email protected]> wrote:

> 2.
> GETs can only query 1 bean at a time.
> If you need a snapshot of the state of the server and have 50 MBeans,
> you have to make 50 requests. You can make POST requests to perform
> batch up GET requests. Fortunately you can specify a * for attributes.
>

Correction:
A SlingServlet extending the AgentServlet form Jolokia registered at
/system/stats triggers authentication and can be restricted to GET
only with the SlingServlet annotation.

Provided the query is performed in a parameter [1], its possible to
retrieve all MBeans, however, Jolokia ignores the Attributes that it
doesn't understand how to convert into json. For instance, the
TimeSeries in Jackrabbit is ignored. I think any container that isn't
a primitive or open type is ignored even if it contains data that
could be output.

I am not really certain of the value of this work any more, so I am
not going to do anything further, unless there is a strong demand.

Best Regards
Ian

1 http://localhost:4502/system/stats?p=read/*:type=*

Reply via email to