Debian Codegraph @

src/docbkx/agents/mule.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 ~ Copyright 2009-2013 Roland Huss
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17
18 <section id="agents-mule">
19 <title>Mule Agent</title>
20 <para>
21 Jolokia's <ulink url="http://www.mulesoft.org">Mule</ulink> agent
22 uses Mule's own agent interface for plugging into the ESB running
23 in standalone mode.
24 </para>
25 <para>
26 The agent needs to be included into the Mule configuration as
27 shown in the following example, which is the way how to configure
28 the agent for Mule 3:
29 </para>
30 <informalexample>
31 <programlisting><![CDATA[
32 <mule xmlns="http://www.mulesoft.org/schema/mule/core"
33 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34 xmlns:management="http://www.mulesoft.org/schema/mule/management"
35 xmlns:spring="http://www.springframework.org/schema/beans"
36 xsi:schemaLocation="
37 http://www.mulesoft.org/schema/mule/core
38 http://www.mulesoft.org/schema/mule/core/3.1/mule.xsd
39 http://www.springframework.org/schema/beans
40 http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
41 http://www.mulesoft.org/schema/mule/management
42 http://www.mulesoft.org/schema/mule/management/3.1/mule-management.xsd">
43
44 <!-- .... -->
45 <custom-agent name="jolokia-agent" class="org.jolokia.mule.JolokiaMuleAgent">
46 <spring:property name="port" value="8899"/>
47 </custom-agent>
48 <management:jmx-server/>
49 </mule>
50 ]]></programlisting>
51 </informalexample>
52 <para>
53 For Mule 2, the configuration is slightly different since the
54 <literal>&lt;custom-agent&gt;</literal> is contained in the
55 <literal>management</literal> namespace for Mule 2
56 (<literal>&lt;management:custom-agent&gt;</literal>)
57 </para>
58 <para>
59 This agent knows about the following configuration parameters
60 </para>
61 <table id="agent-mule-config">
62 <title>Mule agent configuration options</title>
63 <thead>
64 <tr>
65 <td>Parameter</td>
66 <td>Description</td>
67 <td>Example</td>
68 </tr>
69 </thead>
70 <tr>
71 <td><constant>host</constant></td>
72 <td>
73 Hostaddress to which the HTTP server should bind to.
74 </td>
75 <td>
76 <constant>InetAddress.getLocalHost()</constant>
77 </td>
78 </tr>
79 <tr>
80 <td><constant>port</constant></td>
81 <td>
82 Port the HTTP server should listen to.
83 </td>
84 <td>
85 <constant>8888</constant>
86 </td>
87 </tr>
88 <tr>
89 <td><constant>user</constant></td>
90 <td>
91 Use to authenticate against. This switches on security and
92 requires a client to provide a user and password.
93 </td>
94 <td>
95 </td>
96 </tr>
97 <tr>
98 <td><constant>password</constant></td>
99 <td>
100 Password to check against when security is switched on.
101 </td>
102 <td>
103 </td>
104 </tr>
105 <tr>
106 <td><constant>debug</constant></td>
107 <td>
108 Debugging state after startup. Can be changed via the <xref
109 linkend="mbean-config">configuration MBean</xref> during
110 runtime.
111 </td>
112 <td>
113 <constant>false</constant>
114 </td>
115 </tr>
116 <tr>
117 <td><constant>historyMaxEntries</constant></td>
118 <td>
119 Entries to keep in the history. Can be changed at
120 runtime via the <xref linkend="mbean-config">configuration MBean</xref>.
121 </td>
122 <td>
123 <constant>10</constant>
124 </td>
125 </tr>
126 <tr>
127 <td><constant>debugMaxEntries</constant></td>
128 <td>
129 Maximum number of entries to keep in the local
130 debug history (if enabled). Can be changed via
131 the <xref linkend="mbean-config">configuration MBean</xref> at runtime.
132 </td>
133 <td>
134 <constant>100</constant>
135 </td>
136 </tr>
137 <tr>
138 <td><constant>maxDepth</constant></td>
139 <td>
140 Maximum depth when traversing bean properties.
141 If set to 0, depth checking is disabled
142 </td>
143 <td>
144 <constant>5</constant>
145 </td>
146 </tr>
147 <tr>
148 <td><constant>maxCollectionSize</constant></td>
149 <td>
150 Maximum size of collections returned when
151 serializing to JSON. When set to 0,
152 collections are never truncated.
153 </td>
154 <td>
155 <constant>0</constant>
156 </td>
157 </tr>
158 <tr>
159 <td><constant>maxObjects</constant></td>
160 <td>
161 Maximum number of objects which are traversed
162 when serializing a single response. Use this
163 as an airbag to avoid boosting your memory and
164 network traffic. Nevertheless, when set to 0
165 no limit is imposed.
166 </td>
167 <td>
168 <constant>10000</constant>
169 </td>
170 </tr>
171 <tr>
172 <td><constant>canonicalNaming</constant></td>
173 <td>
174 This option specifies in which order the key-value
175 properties within ObjectNames as returned by
176 <constant>list</constant> or <constant>search</constant> are
177 returned. By default this is the so called 'canonical order'
178 in which the keys are sorted alphabetically. If this option
179 is set to <constant>false</constant>, then the natural order
180 is used, i.e. the object name as it was registered. This
181 option can be overridden with a query parameter of the same
182 name.
183 </td>
184 <td>
185 <constant>true</constant>
186 </td>
187 </tr>
188 <tr>
189 <td><constant>includeStackTrace</constant></td>
190 <td>
191 Whether to include a stacktrace of an exception in case of
192 an error. By default it it set to <constant>true</constant>
193 in which case the stacktrace is always included. If set to
194 <constant>false</constant>, no stacktrace is included. If
195 the value is <constant>runtime</constant> a stacktrace is
196 only included for RuntimeExceptions. This global option can
197 be overridden with a query parameter.
198 </td>
199 <td>
200 <constant>true</constant>
201 </td>
202 </tr>
203 <tr>
204 <td><constant>serializeException</constant></td>
205 <td>
206 When this parameter is set to <constant>true</constant>,
207 then an exception thrown will be serialized as JSON and
208 included in the response under the key
209 <constant>error_value</constant>. No stactrace infornmation
210 will be included, though. This global option can be
211 overridden by a query parameter of the same name.
212 </td>
213 <td>
214 <constant>false</constant>
215 </td>
216 </tr>
217 </table>
218 <para>
219 The context under which the agent is reachable is fixed to
220 <literal>/jolokia</literal>. As an alternative to this Mule agent,
221 the <xref linkend="agents-jvm">JVM agent</xref> can be used for
222 Mule, too. This agent also knows about SSL encryption and
223 authentication.
224 </para>
225
226 </section>