cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache CXF Documentation > JMX Management
Date Wed, 09 Sep 2009 10:34:00 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1519/1/1/_/styles/combined.css?spaceKey=CXF20DOC&amp;forWysiwyg=true"
<body style="background-color: white" bgcolor="white">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
     <h2><a href="">JMX
     <h4>Page <b>edited</b> by             <a href="">Eoghan
     Explicit upfront reference to the CounterRepository config
          <div id="versionComment" class="noteMacro" style="display:none; padding: 5px;">
     Explicit upfront reference to the CounterRepository config<br />
     <div class="notificationGreySide">
         <h1><a name="JMXManagement-HowtoenabletheCXFinstrumentationManager"></a>How
to enable the CXF instrumentationManager</h1>

<p>CXF Endpoints can be managed with JMX. You simply have add the following configuration
to your cxf.xml which will enable the CXF management module to work.</p>

<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
<pre>&lt;bean id=""
  &lt;property name="bus" ref="cxf" /&gt;
  &lt;property name="enabled" value="true" /&gt;
  &lt;property name="threaded" value="false" /&gt;
  &lt;property name="daemon" value="false" /&gt;
  &lt;property name="JMXServiceURL" value="service:jmx:rmi:///jndi/rmi://localhost:9914/jmxrmi"

<p>To avoid any unnecessary runtime overhead, the performance counters measuring response
time are disabled by default. Further <a href="#JMXManagement-responsetime">configuration</a>
is required to enable this instrumentation.</p>

<p>To test the configuration start up your service and connect to it by using jconsole
from the jdk.<br/>
<img src="/confluence/download/attachments/70534/jconsole_connect2.png" align="absmiddle"
border="0" /><br/>
Then you can browse to your endpoint:<br/>
<img src="/confluence/download/attachments/70534/jconsole_service_endpoint.png" align="absmiddle"
border="0" /><br/>

<p><a name="JMXManagement-responsetime"></a> </p>
<h1><a name="JMXManagement-Howtogettherequestresponsehandlingtime%3F"></a>How
to get the request response handling time ?</h1>

<p>CXF management module also provides a feature which can get the ongoing message's
response time (the Time that CXF get the response - the Time that CXF get the request), since
we can't store each of the message handling time, we just store the longest response time
in the counter repository which you can use jconsole to look up.</p>

<p>Here is the configuration snippet of the that your should add into the cxf.xml</p>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
<pre>    &lt;!-- Wiring the counter repository --&gt; 
    &lt;bean id="CounterRepository" class=""&gt;
        &lt;property name="bus" ref="cxf" /&gt;        
     <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>

       <a href="">View
       <a href="">View
       <a href=";showCommentArea=true#addcomment">Add

View raw message