You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2012/11/22 10:18:05 UTC

svn commit: r839093 - in /websites/production/camel/content: cache/main.pageCache xmlrpc.html

Author: buildbot
Date: Thu Nov 22 09:18:04 2012
New Revision: 839093

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/xmlrpc.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/xmlrpc.html
==============================================================================
--- websites/production/camel/content/xmlrpc.html (original)
+++ websites/production/camel/content/xmlrpc.html Thu Nov 22 09:18:04 2012
@@ -217,7 +217,25 @@ xmlrpc:<span class="code-comment">//serv
 <h3><a shape="rect" name="XmlRpc-HowtoconfiguretheXmlRpcClientwithJavacode"></a>How to configure the XmlRpcClient with Java code</h3>
 <p>camel-xmlrpc provides a pluggable strategy for configuring the XmlRpcClient used by the component, user just to implement the <b>XmlRpcClientConfigurer</b> interface and can configure the XmlRpcClient as he wants. The clientConfigure instance reference can be set through the uri option clientConfigure.</p>
 
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<pre class="code-java"><span class="code-keyword">import</span> org.apache.xmlrpc.client.XmlRpcClient;
+<span class="code-keyword">import</span> org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
+
+<span class="code-keyword">public</span> class MyClientConfigurer <span class="code-keyword">implements</span> XmlRpcClientConfigurer {
+
+    @Override
+    <span class="code-keyword">public</span> void configureXmlRpcClient(XmlRpcClient client) {
+        <span class="code-comment">// get the configure first
+</span>        XmlRpcClientConfigImpl clientConfig = (XmlRpcClientConfigImpl)client.getClientConfig();
+        <span class="code-comment">// change the value of clientConfig
+</span>        clientConfig.setEnabledForExtensions(<span class="code-keyword">true</span>);
+        <span class="code-comment">// set the option on the XmlRpcClient
+</span>        client.setMaxThreads(10);
+    }
+
+}
+</pre>
+</div></div>
 
 </div>
         </td>