Jolokia Bundle Properties
| Property |
Default |
Description |
| org.jolokia.user |
|
User used for authentication with HTTP Basic
Authentication. If not given, no authentication is used. |
| org.jolokia.password |
|
Password used for authentication with HTTP Basic
Authentication. |
| org.jolokia.agentContext |
/jolokia |
Context path of the agent servlet |
| org.jolokia.agentId |
|
A unique ID for this agent. By default a unique id is
calculated. If provided it should be ensured that this id is
unique among all agent reachable via multicast requests used
by the discovery mechanism. It is recommended not to set
this value. Within the agentId specification you
can use the same placeholders as in discoveryAgentUrl.
|
| org.jolokia.agentDescription |
|
An optional description which can be used for clients to
present a humand readable label for this agent.
|
| org.jolokia.dispatcherClasses |
|
Class names (comma separated) of request dispatchers used in
addition to the LocalRequestDispatcher. E.g using a value
of
org.jolokia.jsr160.Jsr160RequestDispatcher
allows the agent to play the role of a JSR-160 proxy.
By default no extract dispatchers are enabled.
You can use the system property org.jolokia.jsr160ProxyEnabled or the
environment variable JOLOKIA_JSR160_PROXY_ENABLED to enable the the JSR-160 proxy.
In that case you should be sure that you enable authentication for the web application to protect access
to the proxy.
|
| org.jolokia.debug |
false |
Debugging state after startup. This can be changed via the
Config MBean (jolokia:type=Config) at
runtime
|
| org.jolokia.debugMaxEntries |
100 |
Maximum number of entries to keep in the local debug history
if switched on. This can be changed via the config MBean at
runtime.
|
| org.jolokia.maxDepth |
0 |
Maximum depth when traversing bean properties.
If set to 0, depth checking is disabled
|
| org.jolokia.maxCollectionSize |
0 |
Maximum size of collections returned when
serializing to JSON. When set to 0,
collections are not truncated.
|
| org.jolokia.maxObjects |
0 |
Maximum number of objects which are traversed
when serializing a single response. Use this
as an airbag to avoid boosting your memory and
network traffic. Nevertheless, when set to 0
no limit is imposed.
|
| org.jolokia.historyMaxEntries |
10 |
Number of entries to keep in the history. This can be changed at
runtime via the Jolokia config MBean.
|
| org.jolokia.listenForHttpService |
true |
If true the bundle listens for an OSGi
HttpService and if available registers an
agent servlet to it.
|
| org.jolokia.httpServiceFilter |
|
Can be any valid OSGi filter for locating a which
org.osgi.service.http.HttpService
is used to expose the Jolokia servlet. The syntax is that
used by the org.osgi.framework.Filter
which is in turn a
RFC 1960 based filter. The use of this property
is described in
|
| org.jolokia.useRestrictorService |
false |
If true the Jolokia agent will use any
org.jolokia.restrictor.Restrictor
service for applying access restrictions. If this option is
false the standard method of looking up a
security policy file is used, as described in .
|
| org.jolokia.canonicalNaming |
true |
This option specifies in which order the key-value
properties within ObjectNames as returned by
list or search are
returned. By default this is the so called 'canonical order'
in which the keys are sorted alphabetically. If this option
is set to false, then the natural order
is used, i.e. the object name as it was registered. This
option can be overridden with a query parameter of the same
name.
|
| org.jolokia.includeStackTrace |
true |
Whether to include a stacktrace of an exception in case of
an error. By default it it set to true
in which case the stacktrace is always included. If set to
false, no stacktrace is included. If
the value is runtime a stacktrace is
only included for RuntimeExceptions. This global option can
be overridden with a query parameter.
|
| org.jolokia.serializeException |
false |
When this parameter is set to true,
then an exception thrown will be serialized as JSON and
included in the response under the key
error_value. No stactrace infornmation
will be included, though. This global option can be
overridden by a query parameter of the same name.
|
| org.jolokia.detectorOptions |
|
An optional JSON representation for application specific
options used by detectors for post-initialization steps. See the description of
detectorOptions in
for details.
|
| org.jolokia.discoveryEnabled |
false |
Is set to true then this servlet will
listen for multicast request (multicast-group 239.192.48.84,
port 24884 by default, but can be configued).
By default this option is disabled in order to
avoid conflicts with an Java EE standards (though this should't
harm anyways). This option can also be switched on with an
environment variable
JOLOKIA_DISCOVERY or the system
property jolokia.discoveryEnabled set to
true.
|
| org.jolokia.discoveryAgentUrl |
|
Sets the URL to respond for multicast discovery requests. If
given, discoveryEnabled is set
implicetly to true. This URL can also be provided by an
environment variable
JOLOKIA_DISCOVERY_AGENT_URL or the system
property jolokia.discoveryUrl. Within the value you can use the
placeholders ${host} and ${ip} which gets replaced
by the autodetected local host name/address. Also with ${env:ENV_VAR} and
${sys:property} environment and system properties can be referenced, respectively.
|
| org.jolokia.multicastGroup |
239.192.48.84 |
The multicast group IPv4 address. This group IP can be also given as an environment variable JOLOKIA_MULTICAST_GROUP or a system property jolokia.multicastGroup |
| org.jolokia.multicastPort |
24884 |
The multicast port. This port can be also given as an environment variable JOLOKIA_MULTICAST_PORT or a system property jolokia.multicastPort |
| org.jolokia.realm |
jolokia |
Sets the security realm to use. If the authMode is set to
jaas this is also used as value for the security domain.
E.g. for Karaf 3 and later, this realm should be karaf since
all JMX MBeans are guarded by this security domain.
|
| org.jolokia.authMode |
basic |
Can be either basic (the default), jaas,
service-all or service-any. If
jaas is used, the user and password which are given in the Authorization:
header are used for login in via JAAS and, if successful, the return subject is used for all Jolokia operation.
When no user is set and the authMode is either service-all or
service-any then a org.jolokia.osgi.security.Authenticator service is looked up in the
OSGi service registry. If more then one of such service is registered, service-all requires
that all authenticators succeed, for service-any it is sufficient that one authenticator
successfully authenticates. In any case if no such Authenticator service can be found, the request is rejected.
|