You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2012/09/21 21:46:06 UTC
svn commit: r1388647 [17/28] - in /servicemix/site/production/docs/4.4.x: ./
activemq/ architecture/ camel/ camel/deployment/ commands/ images/ jbi/
jbi/components/ jbi/intro/ karaf/ karaf/developers-guide/
karaf/users-guide/ nmr/ quickstart/ quickstar...
Added: servicemix/site/production/docs/4.4.x/jbi/components/servicemix-quartz.html
URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.4.x/jbi/components/servicemix-quartz.html?rev=1388647&view=auto
==============================================================================
--- servicemix/site/production/docs/4.4.x/jbi/components/servicemix-quartz.html (added)
+++ servicemix/site/production/docs/4.4.x/jbi/components/servicemix-quartz.html Fri Sep 21 19:45:57 2012
@@ -0,0 +1,132 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Apache ServiceMix Documentation - </title>
+
+ <link href="../../theme/master.css" rel="stylesheet" type="text/css" />
+ <link href="../../theme/pygmentize.css" rel="stylesheet" type="text/css" />
+
+ <script type="text/javascript" src="../../scripts/jquery.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.cookie.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.jstree.js"></script>
+
+ <script>
+ $(document).ready(function(){
+ $("#nav").jstree({
+ "themes": {
+ "theme": "apple", "dots": false
+ },
+ "plugins" : [ "themes", "html_data", "cookies", "themes" ]
+ });
+ });
+ </script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-398545-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+</head>
+<body>
+ <div id="page">
+ <div id="siteHeader">
+ <table width="100%">
+ <tr valign="middle">
+ <td align="left">
+ <a href="http://servicemix.apache.org/" title="An open source ESB">
+ <img border="0" src="../../images/logodesign.png" height="80"/><img border="0" height="80" src="../../images/new-logo.png" />
+ </a>
+ </td>
+ <td align="right">
+ <a href="http://www.apache.org/" title="The Apache Sofware Foundation">
+ <img border="0" height="60" src="../../images/ASF-logo.png">
+ </a>
+ <ul class="siteNav">
+ <li><a href="../../index.html" title="Overview">Guides Overview</a></li>
+ <li><a href="../../contribute.html" title="Contributing?">Contributing?</a></li>
+ <li>
+ <form action="http://www.google.com/search" method="get" style="font-size: 10px;">
+ <input name="ie" type="hidden" value="UTF-8"></input>
+ <input name="oe" type="hidden" value="UTF-8"></input>
+ <input maxlength="255" name="q" size="15" type="text" value=""></input>
+ <input name="btnG" type="submit" value="Search"></input>
+ <input name="domains" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ <input name="sitesearch" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ </form>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="content">
+ <div id="nav">
+
+<ul>
+ <li id="jbi-introduction">
+ <a href="#">Introducing JBI</a>
+ <ul>
+ <li id="jbi-what-is-jbi">
+ <a href="../intro/what-is-jbi.html">What is JBI?</a>
+ </li>
+ <li id="jbi-meps">
+ <a href="../intro/meps.html">JBI MEPs</a>
+ </li>
+ <li id="jbi-api">
+ <a href="../intro/api.html">JBI API</a>
+ </li>
+ </ul>
+ </li>
+ <li id="jbi-components">
+ <a href="index.html">JBI Components</a>
+ <ul>
+ <li id="servicemix-bean"><a href="servicemix-bean.html">servicemix-bean</a></li>
+ <li id="servicemix-camel"><a href="servicemix-camel.html">servicemix-camel</a></li>
+ <li id="servicemix-cxf-bc"><a href="servicemix-cxf-bc.html">servicemix-cxf-bc</a></li>
+ <li id="servicemix-cxf-se"><a href="servicemix-cxf-se.html">servicemix-cxf-se</a></li>
+ <li id="servicemix-drools"><a href="servicemix-drools.html">servicemix-drools</a></li>
+ <li id="servicemix-eip"><a href="servicemix-eip.html">servicemix-eip</a></li>
+ <li id="servicemix-exec"><a href="servicemix-exec.html">servicemix-exec</a></li>
+ <li id="servicemix-file"><a href="servicemix-file.html">servicemix-file</a></li>
+ <li id="servicemix-ftp"><a href="servicemix-ftp.html">servicemix-ftp</a></li>
+ <li id="servicemix-http"><a href="servicemix-http.html">servicemix-http</a></li>
+ <li id="servicemix-jms"><a href="servicemix-jms.html">servicemix-jms</a></li>
+ <li id="servicemix-mail"><a href="servicemix-mail.html">servicemix-mail</a></li>
+ <li id="servicemix-osworkflow"><a href="servicemix-osworkflow.html">servicemix-osworkflow</a></li>
+ <li id="servicemix-quartz"><a href="servicemix-quartz.html">servicemix-quartz</a></li>
+ <li id="servicemix-saxon"><a href="servicemix-saxon.html">servicemix-saxon</a></li>
+ <li id="servicemix-scripting"><a href="servicemix-scripting.html">servicemix-scripting</a></li>
+ <li id="servicemix-snmp"><a href="servicemix-snmp.html">servicemix-snmp</a></li>
+ <li id="servicemix-validation"><a href="servicemix-validation.html">servicemix-validation</a></li>
+ <li id="servicemix-vfs"><a href="servicemix-vfs.html">servicemix-vfs</a></li>
+ <li id="servicemix-wsn2005"><a href="servicemix-wsn2005.html">servicemix-wsn2005</a></li>
+ <li id="servicemix-xmpp"><a href="servicemix-xmpp.html">servicemix-xmpp</a></li>
+ </ul>
+ </li>
+</ul>
+
+ </div>
+ <div id="body">
+ <div class="note">
+ <h1>JBI Support deprecated in Apache ServiceMix 4</h1>
+ <p>JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project.
+ Take a look at our <a href="../../users-guide/getting-started/technology-selection.html"</a>technology selection guidelines</a> for more information.</p>
+ </div>
+ <h2 id="servicemixquartz">servicemix-quartz</h2><h3 id="Overview">Overview</h3><p>The servicemix-quartz component is a standard JBI Service Engine able to schedule and trigger jobs using the great Quartz scheduler.</p><h4 id="Namespaceandxbean.xml">Namespace and xbean.xml</h4><p>The namespace URI for the servicemix-bean JBI component is <tt>http://servicemix.apache.org/quartz/1.0</tt>. This is an example of an <tt>xbean.xml</tt> file with a namespace definition with prefix <tt>bean</tt>.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><beans</span> <span class="na">xmlns:osworkflow=</span><span class="s">"http://servicemix.apache.org/quartz/1.0"</span><span class="nt">></span>

 <span class="c"><!-- add quartz:endpoint here --></span>

<span class="nt"></beans></span>
</pre></div>
</div><h4 id="Endpointtypes">Endpoint types</h4><p>The servicemix-quartz component de
fines a single endpoint type:</p><ul style="list-style: square"><li><tt>quartz:endpoint</tt> :: The quartz endpoint can be used to fire message exchanges at a given (recurrent) time.</li></ul><h3 id="quartzendpoint"><tt>quartz:endpoint</tt></h3><h4 id="Endpointproperties">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> calendars </td><td class="confluenceTd"> <em>java.util.Map</em> </td><td class="confluenceTd"> A map with {@link org.quartz.Calendar} instances to define the trigger schedule. </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class=
"confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> jobDetail </td><td class="confluenceTd"> <em><a href="#org.quartz.JobDetailtypes">org.quartz.JobDetail</a></em> </td><td class="confluenceTd"> Set a custom JobDetail bean to be used in the triggered events. </td></tr><tr><td class="confluenceTd"> marshaler </td><td class="confluenceTd"> <em>org.apache.servicemix.quartz.support.QuartzMarshaler</em> </td><td class="confluenceTd"> Set a custom marshaler class to translate the JobDetail information into a normalized message. </td></tr><tr><td class="confluenceTd"> service </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> targetEndpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> the name of the endpoint to which requests are sent
</td></tr><tr><td class="confluenceTd"> targetInterface </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the interface to which requests are sent </td></tr><tr><td class="confluenceTd"> targetOperation </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the operation to which requests are sent </td></tr><tr><td class="confluenceTd"> targetService </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the service to which requests are sent </td></tr><tr><td class="confluenceTd"> targetUri </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> Set the target service/endpoint/interface using a URI. </td></tr><tr><td class="confluenceTd"> trigger </td><td class="confluenceTd"> <em><a href="#org.quartz.Triggertypes">org.quartz.Trigger</a></em> </td><td class="confluenceTd"> A
single {@link org.quartz.Trigger} instance to define the trigger schedule. </td></tr><tr><td class="confluenceTd"> triggers </td><td class="confluenceTd"> (<em>java.lang.Object</em>)\* </td><td class="confluenceTd"> A list of of {@link org.quartz.Trigger} instances to allow configuring multiple schedules for the same endpoint. </td></tr></table></div>
+ </div>
+
+ </div>
+ <div id="siteFooter">
+ © 2008-2012 The Apache Software Foundation - <a href="http://servicemix.apache.org/site/privacy-policy.html">Privacy Policy</a>
+ <br/>
+ Apache ServiceMix, ServiceMix, Apache, the Apache feather logo, and the Apache ServiceMix project logo are trademarks of The Apache Software Foundation.
+ </div>
+ </div>
+</body>
+</html>
\ No newline at end of file
Added: servicemix/site/production/docs/4.4.x/jbi/components/servicemix-saxon.html
URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.4.x/jbi/components/servicemix-saxon.html?rev=1388647&view=auto
==============================================================================
--- servicemix/site/production/docs/4.4.x/jbi/components/servicemix-saxon.html (added)
+++ servicemix/site/production/docs/4.4.x/jbi/components/servicemix-saxon.html Fri Sep 21 19:45:57 2012
@@ -0,0 +1,132 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Apache ServiceMix Documentation - </title>
+
+ <link href="../../theme/master.css" rel="stylesheet" type="text/css" />
+ <link href="../../theme/pygmentize.css" rel="stylesheet" type="text/css" />
+
+ <script type="text/javascript" src="../../scripts/jquery.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.cookie.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.jstree.js"></script>
+
+ <script>
+ $(document).ready(function(){
+ $("#nav").jstree({
+ "themes": {
+ "theme": "apple", "dots": false
+ },
+ "plugins" : [ "themes", "html_data", "cookies", "themes" ]
+ });
+ });
+ </script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-398545-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+</head>
+<body>
+ <div id="page">
+ <div id="siteHeader">
+ <table width="100%">
+ <tr valign="middle">
+ <td align="left">
+ <a href="http://servicemix.apache.org/" title="An open source ESB">
+ <img border="0" src="../../images/logodesign.png" height="80"/><img border="0" height="80" src="../../images/new-logo.png" />
+ </a>
+ </td>
+ <td align="right">
+ <a href="http://www.apache.org/" title="The Apache Sofware Foundation">
+ <img border="0" height="60" src="../../images/ASF-logo.png">
+ </a>
+ <ul class="siteNav">
+ <li><a href="../../index.html" title="Overview">Guides Overview</a></li>
+ <li><a href="../../contribute.html" title="Contributing?">Contributing?</a></li>
+ <li>
+ <form action="http://www.google.com/search" method="get" style="font-size: 10px;">
+ <input name="ie" type="hidden" value="UTF-8"></input>
+ <input name="oe" type="hidden" value="UTF-8"></input>
+ <input maxlength="255" name="q" size="15" type="text" value=""></input>
+ <input name="btnG" type="submit" value="Search"></input>
+ <input name="domains" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ <input name="sitesearch" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ </form>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="content">
+ <div id="nav">
+
+<ul>
+ <li id="jbi-introduction">
+ <a href="#">Introducing JBI</a>
+ <ul>
+ <li id="jbi-what-is-jbi">
+ <a href="../intro/what-is-jbi.html">What is JBI?</a>
+ </li>
+ <li id="jbi-meps">
+ <a href="../intro/meps.html">JBI MEPs</a>
+ </li>
+ <li id="jbi-api">
+ <a href="../intro/api.html">JBI API</a>
+ </li>
+ </ul>
+ </li>
+ <li id="jbi-components">
+ <a href="index.html">JBI Components</a>
+ <ul>
+ <li id="servicemix-bean"><a href="servicemix-bean.html">servicemix-bean</a></li>
+ <li id="servicemix-camel"><a href="servicemix-camel.html">servicemix-camel</a></li>
+ <li id="servicemix-cxf-bc"><a href="servicemix-cxf-bc.html">servicemix-cxf-bc</a></li>
+ <li id="servicemix-cxf-se"><a href="servicemix-cxf-se.html">servicemix-cxf-se</a></li>
+ <li id="servicemix-drools"><a href="servicemix-drools.html">servicemix-drools</a></li>
+ <li id="servicemix-eip"><a href="servicemix-eip.html">servicemix-eip</a></li>
+ <li id="servicemix-exec"><a href="servicemix-exec.html">servicemix-exec</a></li>
+ <li id="servicemix-file"><a href="servicemix-file.html">servicemix-file</a></li>
+ <li id="servicemix-ftp"><a href="servicemix-ftp.html">servicemix-ftp</a></li>
+ <li id="servicemix-http"><a href="servicemix-http.html">servicemix-http</a></li>
+ <li id="servicemix-jms"><a href="servicemix-jms.html">servicemix-jms</a></li>
+ <li id="servicemix-mail"><a href="servicemix-mail.html">servicemix-mail</a></li>
+ <li id="servicemix-osworkflow"><a href="servicemix-osworkflow.html">servicemix-osworkflow</a></li>
+ <li id="servicemix-quartz"><a href="servicemix-quartz.html">servicemix-quartz</a></li>
+ <li id="servicemix-saxon"><a href="servicemix-saxon.html">servicemix-saxon</a></li>
+ <li id="servicemix-scripting"><a href="servicemix-scripting.html">servicemix-scripting</a></li>
+ <li id="servicemix-snmp"><a href="servicemix-snmp.html">servicemix-snmp</a></li>
+ <li id="servicemix-validation"><a href="servicemix-validation.html">servicemix-validation</a></li>
+ <li id="servicemix-vfs"><a href="servicemix-vfs.html">servicemix-vfs</a></li>
+ <li id="servicemix-wsn2005"><a href="servicemix-wsn2005.html">servicemix-wsn2005</a></li>
+ <li id="servicemix-xmpp"><a href="servicemix-xmpp.html">servicemix-xmpp</a></li>
+ </ul>
+ </li>
+</ul>
+
+ </div>
+ <div id="body">
+ <div class="note">
+ <h1>JBI Support deprecated in Apache ServiceMix 4</h1>
+ <p>JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project.
+ Take a look at our <a href="../../users-guide/getting-started/technology-selection.html"</a>technology selection guidelines</a> for more information.</p>
+ </div>
+ <h2 id="servicemixsaxon">servicemix-saxon</h2><h3 id="Overview">Overview</h3><p>The servicemix-saxon component is a standard JBI Service Engine for XSLT / XQuery. This component is based on Saxon and supports XSLT 2.0 and XPath 2.0, and XQuery 1.0.</p><h4 id="Namespaceandxbean.xml">Namespace and xbean.xml</h4><p>The namespace URI for the servicemix-bean JBI component is <tt>http://servicemix.apache.org/saxon/1.0</tt>. This is an example of <tt>xbean.xml</tt> file with a namespace definition with prefix <tt>saxon</tt>.</p><div class="syntax"><div class="highlight"><pre> <span class="nt"><beans</span> <span class="na">xmlns:saxon=</span><span class="s">"http://servicemix.apache.org/saxon /1.0"</span><span class="nt">></span>

 <span class="c"><!-- add saxon:xslt, saxon:xquery or saxon:proxy definitions here --></span>

 <span class="nt"></beans></span>
</pre></div>
</div><h4
id="Endpointtypes">Endpoint types</h4><p>The servicemix-saxon component defines these endpoints:</p><ul><li><a href="#xslt.html"><tt>saxon:xslt</tt></a>: Translates the in message content using XSLT to send back the translated content in the out message</li><li><tt>saxon:proxy</tt>: Acts as a proxy for an endpoint, translating the message passed to/from the endpoint using XSLT</li><li><tt>saxon:xquery</tt>: Use xquery to extract parts of the XML</li></ul><h3 id="Endpointsaxonxsltanchorxslt">Endpoint <tt>saxon:xslt</tt> <span id="xslt"></span></h3><p>The XSLT endpoint can be used to apply an XSLT stylesheet to the incoming exchange and will return the transformed result as the output message.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xslt</span> <span class="na">service=</span><span class="s">"test:xslt"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span>
 <span class="na">resource
=</span><span class="s">"classpath:transform.xsl"</span> <span class="nt">/></span>
</pre></div>
</div><h4 id="Endpointproperties">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> configuration </td><td class="confluenceTd"> <em>net.sf.saxon.Configuration</em> </td><td class="confluenceTd"> Additional configuration for the Saxon XSL-T/XQuery processor. </td></tr><tr><td class="confluenceTd"> copyAttachments </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy attachments into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copyProperties </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy properties into the resulting normalized messag
e. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copySubject </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy the security subject into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> expression </td><td class="confluenceTd"> <em>org.apache.servicemix.expression.Expression</em> </td><td class="confluenceTd"> Expression to dynamically determine the stylesheet to use for processing the exchange. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> parameters </td><td class="confluenceTd"> <em>ja
va.util.Map</em> </td><td class="confluenceTd"> Add parameter names and values that are available during XSL/XQuery processing. </td></tr><tr><td class="confluenceTd"> reload </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Sets whether the endpoint should reload the resource each time it is used. A value of <code>true</code> will ensure that the resource is not cached which can be useful if the resource is updated regularly and is stored outside of the service unit. </td></tr><tr><td class="confluenceTd"> resource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource for the XSL-T stylesheet or XQuery file to use. </td></tr><tr><td class="confluenceTd"> result </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The output result type, possible values are dom, bytes, string. Defaults to dom. </td></tr><tr><td class="confluenceTd"> serv
ice </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> sourceTransformer </td><td class="confluenceTd"> <em>org.apache.servicemix.jbi.jaxp.SourceTransformer</em> </td><td class="confluenceTd"> Set a SourceTransformer instance to use for handling XML conversions. </td></tr><tr><td class="confluenceTd"> transformerFactory </td><td class="confluenceTd"> <em>javax.xml.transform.TransformerFactory</em> </td><td class="confluenceTd"> Set a transform factory, e.g. for injecting a custom transformer configuration or implementation. </td></tr><tr><td class="confluenceTd"> useDomSourceForContent </td><td class="confluenceTd"> <em>java.lang.Boolean</em> </td><td class="confluenceTd"> Convert the message body Source into a DOMSource. Defaults to <code>false</true>. </td></tr><tr><td class="confluenceTd"> useDomSourceForXslt </td><td class="c
onfluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Convert the XSL-T stylesheet Source into a DOMSource. Defaults to <code>true</true>. </td></tr><tr><td class="confluenceTd"> wsdlResource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Resource referring to the WSDL resource that defines this endpoint. </td></tr></table></div><h4 id="Mandatoryproperties">Mandatory properties</h4><p>The endpoint requires one of these two properties to be specified:</p><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> description </th></tr><tr><td class="confluenceTd"> <tt>resource</tt> </td><td class="confluenceTd"> (<a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a>) </td><td class="confluenceTd"> the spring resource pointing to the XSLT stylesheet
</td></tr><tr><td class="confluenceTd"> <tt>expression</tt> </td><td class="confluenceTd"> (<a href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/expression/Expression.html">ServiceMix expression</a>) </td><td class="confluenceTd"> expression used to dynamically load the stylesheet </td></tr></table></div><h4 id="Optionalproperties">Optional properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> description </th></tr><tr><td class="confluenceTd"> <tt>wsdlResource</tt> </td><td class="confluenceTd">(<a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a>) </td><td class="confluenceTd"> if set, the wsdl will be retrieved from the given Spring resource </td></tr><tr><td class="confluenceTd"> <tt>transformerFactory</tt> </td><td clas
s="confluenceTd"> (TransformerFactory, defaults to the Saxon implementation) </td><td class="confluenceTd"> TraX factory to create transformers </td></tr><tr><td class="confluenceTd"> <tt>configuration</tt> </td><td class="confluenceTd"> (<a href="http://www.saxonica.com/documentation/javadoc/net/sf/saxon/Configuration.html">Saxon configuration</a>) </td><td class="confluenceTd"> Saxon configuration object </td></tr><tr><td class="confluenceTd"> <tt>result</tt> </td><td class="confluenceTd"> (String, defaults to <tt>dom</tt>) </td><td class="confluenceTd"> Allows specifying the output result type, possible values are <tt>dom</tt>, <tt>bytes</tt>, <tt>string</tt> </td></tr><tr><td class="confluenceTd"> <tt>copyAttachments</tt>, <tt>copyProperties</tt> and <tt>copySubject</tt> </td><td class="confluenceTd"> (default to <tt>true</tt> </td><td class="confluenceTd"> Configure to copy message attachments, properties and security subject over to the result message </td></tr><tr><t
d class="confluenceTd"> <tt>useDomSourceForXslt</tt> </td><td class="confluenceTd"> (defaults to <tt>true</tt> </td><td class="confluenceTd"> when set to <tt>true</tt>, forces the transformation of the xslt stylesheet into a DOM document before giving it to the transformer </td></tr><tr><td class="confluenceTd"> <tt>useDomSourceForContent</tt> </td><td class="confluenceTd"> (defaults to <tt>false</tt>) </td><td class="confluenceTd"> when set to <tt>true</tt>, forces the transformation of the incoming JBI message into a DOM document before giving it to the transformer </td></tr><tr><td class="confluenceTd"> <tt>parameters</tt> </td><td class="confluenceTd"> a <tt>Map</tt> </td><td class="confluenceTd"> containing additional parameters to give to the transformation engine </td></tr></table></div><h4 id="Usingpropertiesandparameters">Using properties and parameters</h4><p>All properties defined on the JBI exchange and input JBI message will be available for use inside the XSLT
stylesheet as parameters.</p><p>In addition to those properties and the one specified in the <tt>parameters</tt> property on the endpoint, the following objects are also available:</p><ul><li><tt>exchange</tt> : the JBI exchange</li><li><tt>in</tt> : the input JBI NormalizedMessage</li><li><tt>component</tt> : the XsltEndpoint instance being called</li></ul><p>Below is an example that demonstrates how the properties of the exchange and normalized message can be accessed from inside the xslt.</p><div class="syntax"><div class="highlight"><pre><span class="cp"><?xml version="1.0" encoding="windows-1253"?></span>
<span class="nt"><xsl:stylesheet</span> <span class="na">xmlns:xsl=</span><span class="s">"http://www.w3.org/1999/XSL/Transform"</span> <span class="na">version=</span><span class="s">"2.0"</span>
 <span class="na">xmlns:class=</span><span class="s">"http://saxon.sf.net/java-type"</
span>
 <span class="na">xmlns:me=</span><span class="s">"java:javax.jbi.messaging.MessageExchange"</span>
 <span class="na">xmlns:nm=</span><span class="s">"java:javax.jbi.messaging.NormalizedMessage"</span><span class="nt">></span>
 <span class="nt"><xsl:output</span> <span class="na">method=</span><span class="s">"xml"</span> <span class="na">indent=</span><span class="s">"yes"</span> <span class="na">encoding=</span><span class="s">"ISO-8859-1"</span><span class="nt">/></span>
 <span class="nt"><xsl:param</span> <span class="na">name=</span><span class="s">"exchange"</span> <span class="na">as=</span><span class="s">"class:javax.jbi.messaging.MessageExchange"</span><span class="nt">/></span>
 <span class="nt"><xsl:param</span> <span class="na">name=</span><span class="s">"in"</span> <span class="na">as=
</span><span class="s">"class:javax.jbi.messaging.NormalizedMessage"</span><span class="nt">/></span>

 <span class="nt"><xsl:template</span> <span class="na">match=</span><span class="s">"/"</span><span class="nt">></span>
 <span class="nt"><message></span>
 <span class="c"><!-- The value of messageId will be read from thr property MSG_ID of the "in" NormalizedMessage --></span>
 <span class="nt"><messageId></span>
 <span class="nt"><xsl:value-of</span> <span class="na">select=</span><span class="s">"nm:getProperty($in, 'MSG_ID')"</span><span class="nt">/></span>
 <span class="nt"></messageId></span>
 <span class="nt"></message></span>
<span class="nt"></xsl:stylesheet></span> 
</pre></div>
</div><p>All those parameters can be accessed using XSLT standard wa
ys using <tt><xsl:param/></tt>.</p><h3 id="Endpointsaxonproxy">Endpoint <tt>saxon:proxy</tt></h3><p>One common use case is the need to transform a request coming from a service and send it to another service and do the same with the response. A simple example is the need to translate the request and responses between two SOAP endpoints. Such a use case could be implemented using two XSLT endpoints and an EIP StaticRoutingSlip. However, there are some drawbacks, as the operation is lost in the process, and a static routing slip can not be used to process InOnly exchanges.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:proxy</span> <span class="na">service=</span><span class="s">"test:proxy"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span>
 <span class="na">resource=</span><span class="s">"classpath:transform-in.xsl"</span>
 <span class="na">outReso
urce=</span><span class="s">"classpath:transform-out.xsl"</span>
 <span class="na">faultResource=</span><span class="s">"classpath:transform-fault.xsl"</span><span class="nt">></span>
 <span class="nt"><saxon:target></span>
 <span class="nt"><saxon:exchange-target</span> <span class="na">service=</span><span class="s">"test:echo"</span> <span class="nt">/></span>
 <span class="nt"></saxon:target></span>
<span class="nt"></saxon:proxy></span>
</pre></div>
</div><h4 id="Endpointproperties2">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> configuration </td><td class="confluenceTd"> <em>net.sf.saxon.Configuration</em> </td><td class="confluenceTd"> Additional configu
ration for the Saxon XSL-T/XQuery processor. </td></tr><tr><td class="confluenceTd"> copyAttachments </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy attachments into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copyProperties </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy properties into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copySubject </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy the security subject into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> expression </td><td class="confluenceTd"> <em>org.apac
he.servicemix.expression.Expression</em> </td><td class="confluenceTd"> Expression to dynamically determine the stylesheet to use for processing the exchange. </td></tr><tr><td class="confluenceTd"> faultResource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource for the XSL-T stylesheet or XQuery file to use for transforming the 'fault' message. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> outResource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource for the XSL-T stylesheet or XQuery file to use for transforming the 'out' message. </td></tr><tr><td class="confluenceTd"> parameters </td><td class="confluenceTd"> <em>java.util.
Map</em> </td><td class="confluenceTd"> Add parameter names and values that are available during XSL/XQuery processing. </td></tr><tr><td class="confluenceTd"> reload </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Sets whether the endpoint should reload the resource each time it is used. A value of <code>true</code> will ensure that the resource is not cached which can be useful if the resource is updated regularly and is stored outside of the service unit. </td></tr><tr><td class="confluenceTd"> resource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource for the XSL-T stylesheet or XQuery file to use. </td></tr><tr><td class="confluenceTd"> result </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The output result type, possible values are dom, bytes, string. Defaults to dom. </td></tr><tr><td class="confluenceTd"> service </td
><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> sourceTransformer </td><td class="confluenceTd"> <em>org.apache.servicemix.jbi.jaxp.SourceTransformer</em> </td><td class="confluenceTd"> Set a SourceTransformer instance to use for handling XML conversions. </td></tr><tr><td class="confluenceTd"> store </td><td class="confluenceTd"> <em>org.apache.servicemix.store.Store</em> </td><td class="confluenceTd"> Configure a custom Store implementation to store correlation information. Usually, a store factory is configured instead of a store. Defaults to {@link org.apache.servicemix.store.memory.MemoryStore}. </td></tr><tr><td class="confluenceTd"> storeFactory </td><td class="confluenceTd"> <em>org.apache.servicemix.store.StoreFactory</em> </td><td class="confluenceTd"> Configure a custom StoreFactory implementation to store correlation informa
tion. Defaults to {@link org.apache.servicemix.store.memory.MemoryStoreFactory}. </td></tr><tr><td class="confluenceTd"> target </td><td class="confluenceTd"> <em><a href="#org.apache.servicemix.saxon.support.ExchangeTargettypes">org.apache.servicemix.saxon.support.ExchangeTarget</a></em> </td><td class="confluenceTd"> Set the target endpoint that is being proxied by the <code>xslt:proxy</code> endpoint. </td></tr><tr><td class="confluenceTd"> transformerFactory </td><td class="confluenceTd"> <em>javax.xml.transform.TransformerFactory</em> </td><td class="confluenceTd"> Set a transform factory, e.g. for injecting a custom transformer configuration or implementation. </td></tr><tr><td class="confluenceTd"> useDomSourceForContent </td><td class="confluenceTd"> <em>java.lang.Boolean</em> </td><td class="confluenceTd"> Convert the message body Source into a DOMSource. Defaults to <code>false</true>. </td></tr><tr><td class="confluenceTd"> useDomSourceForXslt </td><td
class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Convert the XSL-T stylesheet Sources into a DOMSource. Defaults to <code>true</true>. </td></tr><tr><td class="confluenceTd"> wsdlResource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Resource referring to the WSDL resource that defines this endpoint. </td></tr></table></div><h4 id="Mandatoryproperties2">Mandatory properties</h4><p>Depending on the MEP, you have to set one or more XSL stylesheets to be used for converting the message payloads:</p><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>resource</tt> </td><td class="confluenceTd"> <a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a> </td><td class="confluenceT
d"> the XSLT stylesheet used to transform the input message </td></tr><tr><td class="confluenceTd"> <tt>outResource</tt> </td><td class="confluenceTd"> <a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a> </td><td class="confluenceTd"> the XSLT stylesheet used to transform the output message </td></tr><tr><td class="confluenceTd"> <tt>faultResource</tt> </td><td class="confluenceTd"> <a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a> </td><td class="confluenceTd"> the XSLT stylesheet used to transform the fault message </td></tr><tr><td class="confluenceTd"> <tt>expression</tt> </td><td class="confluenceTd"> <a href="http://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/expression/Expression.html">ServiceMix expression</a> </td><td class="confluenceTd"> used to dynamically load the stylesheet. If se
t, it will prevail against all resource, outResource and faultResource attributes </td></tr></table></div><p>You also have to specify the target service that should be invoked from this endpoint:</p><ul><li><tt>target</tt> : ExchangeTarget that specifies the target service for the proxy endpoint</li></ul><h4 id="Optionalproperties2">Optional properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>wsdlResource</tt> </td><td class="confluenceTd"> <a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a> </td><td class="confluenceTd"> if set, the wsdl will be retrieved from the given (<a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a>) </td></tr></table></div><p>| <tt>transformerFactory</tt> (defaul
ts to the Saxon implementation) :: TraX TransformerFactory to create transformers</p><div class="table-wrap"><table class="confluenceTable"><tr><td class="confluenceTd"> <tt>configuration</tt> </td></tr></table></div><p>| <tt>result</tt> | (defaults to <tt>dom</tt>) :: Allows specifying the output result type, possible values are <tt>dom</tt>, <tt>bytes</tt>, <tt>string</tt></p><div class="table-wrap"><table class="confluenceTable"><tr><td class="confluenceTd"> <tt>copyAttachments</tt>, <tt>copyProperties</tt> and <tt>copySubject</tt> </td></tr></table></div><h3 id="Endpointsaxonxquery">Endpoint <tt>saxon:xquery</tt></h3><p>The XQuery endpoint can be used to apply a selected XQuery to the input document.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xquery</span> <span class="na">service=</span><span class="s">"test:xquery"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span>
 <span
class="na">resource=</span><span class="s">"classpath:query.xq"</span> <span class="nt">/></span>
</pre></div>
</div><h4 id="Endpointproperties3">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> configuration </td><td class="confluenceTd"> <em>net.sf.saxon.Configuration</em> </td><td class="confluenceTd"> Additional configuration for the Saxon XSL-T/XQuery processor. </td></tr><tr><td class="confluenceTd"> copyAttachments </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy attachments into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copyProperties </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy properties into the resulting no
rmalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copySubject </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy the security subject into the resulting normalized message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> expression </td><td class="confluenceTd"> <em>org.apache.servicemix.expression.Expression</em> </td><td class="confluenceTd"> Expression to dynamically determine the stylesheet to use for processing the exchange. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> outputProperties </td><td class="
confluenceTd"> <em>java.util.Properties</em> </td><td class="confluenceTd"> Configure serialization properties, in JAXP format, if the result is to be serialized. This parameter can be defaulted to null. </td></tr><tr><td class="confluenceTd"> parameters </td><td class="confluenceTd"> <em>java.util.Map</em> </td><td class="confluenceTd"> Add parameter names and values that are available during XSL/XQuery processing. </td></tr><tr><td class="confluenceTd"> query </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> Configure the XQuery expression to evaluate. </td></tr><tr><td class="confluenceTd"> reload </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Sets whether the endpoint should reload the resource each time it is used. A value of <code>true</code> will ensure that the resource is not cached which can be useful if the resource is updated regularly and is stored outside of the service unit. </td></tr>
<tr><td class="confluenceTd"> resource </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource for the XSL-T stylesheet or XQuery file to use. </td></tr><tr><td class="confluenceTd"> result </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The output result type, possible values are dom, bytes, string. Defaults to dom. </td></tr><tr><td class="confluenceTd"> service </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> sourceTransformer </td><td class="confluenceTd"> <em>org.apache.servicemix.jbi.jaxp.SourceTransformer</em> </td><td class="confluenceTd"> Set a SourceTransformer instance to use for handling XML conversions. </td></tr><tr><td class="confluenceTd"> wsdlResource </td><td class="confluenceTd"> <em>org.springframework.core.
io.Resource</em> </td><td class="confluenceTd"> Resource referring to the WSDL resource that defines this endpoint. </td></tr></table></div><h4 id="Mandatoryproperties3">Mandatory properties</h4><p>You need to specify one of <tt>query</tt>, <tt>resource</tt> or <tt>expression</tt></p><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>query</tt> </td><td class="confluenceTd"> String </td><td class="confluenceTd"> containing the inlined XQuery expression </td></tr><tr><td class="confluenceTd"> <tt>resource</tt> </td><td class="confluenceTd"> <a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a> </td><td class="confluenceTd"> resource pointing to the XQuery </td></tr><tr><td class="confluenceTd"> <tt>expression</tt> </td><td class="confluenceTd"> <a href="http
://incubator.apache.org/servicemix/dist/servicemix-3.0-incubating/site/servicemix-core/apidocs/org/apache/servicemix/expression/Expression.html">ServiceMix expression</a> </td><td class="confluenceTd"> expression to dynamically load the xquery </td></tr></table></div><h4 id="Optionalproperties3">Optional properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Attribute </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> <tt>wsdlResource</tt> </td><td class="confluenceTd"> (<a href="http://springframework.org/docs/api/org/springframework/core/io/Resource.html">Spring resource</a>) </td><td class="confluenceTd"> WSDL describing the endpoint </td></tr><tr><td class="confluenceTd"> <tt>outputProperties</tt> </td><td class="confluenceTd"> Map </td><td class="confluenceTd"> Saxon specific output properties </td></tr><tr><td class="confluenceTd"> <tt>configuration</tt> </t
d><td class="confluenceTd"> (<a href="http://www.saxonica.com/documentation/javadoc/net/sf/saxon/Configuration.html">Saxon configuration</a>) </td><td class="confluenceTd"> Saxon configuration object </td></tr><tr><td class="confluenceTd"> <tt>result</tt> </td><td class="confluenceTd"> (defaults to <tt>dom</tt>) </td><td class="confluenceTd"> Allows specifying the output result type, possible values are <tt>dom</tt>, <tt>bytes</tt>, <tt>string</tt> </td></tr><tr><td class="confluenceTd"> <tt>copyAttachments</tt>, <tt>copyProperties</tt> and <tt>copySubject</tt> </td><td class="confluenceTd"> (default to <tt>true</tt>) </td><td class="confluenceTd"> Configure to copy message attachments, properties and security subject over to the result message </td></tr></table></div><h3 id="Sampleconfigurations">Sample configurations</h3><h4 id="Dynamicstylesheetselectionsaxonxslt">Dynamic stylesheet selection (<tt>saxon:xslt</tt>)</h4><p>This endpoint configuration will dynamically load
the XSL-T resource that is specified in the <tt>xslt.source</tt> property on the <tt>NormalizedMessage</tt></p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xslt</span> <span class="na">service=</span><span class="s">"test:xslt-dynamic"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span><span class="nt">></span>
 <span class="nt"><saxon:expression></span>
 <span class="nt"><bean</span> <span class="na">class=</span><span class="s">"org.apache.servicemix.expression.PropertyExpression"</span><span class="nt">></span>
 <span class="nt"><property</span> <span class="na">name=</span><span class="s">"property"</span> <span class="na">value=</span><span class="s">"xslt.source"</span> <span class="nt">/></span>
 <span class="nt"></bean></span>
 <span class="nt"></saxon:expression></span>
<span cla
ss="nt"></saxon:xslt></span>
</pre></div>
</div><h4 id="UsingparametersintheXSLTstylesheetsaxonxslt">Using parameters in the XSL-T stylesheet (<tt>saxon:xslt</tt>)</h4><p>You can define a Map of parameters on the <tt>saxon:xslt</tt> endpoint.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xslt</span> <span class="na">service=</span><span class="s">"test:xslt-params"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span>
 <span class="na">resource=</span><span class="s">"classpath:parameter-test.xsl"</span><span class="nt">></span>
 <span class="nt"><property</span> <span class="na">name=</span><span class="s">"parameters"</span><span class="nt">></span>
 <span class="nt"><map></span>
 <span class="nt"><entry</span> <span class="na">key=</span><span class="s">"stringParam"</span> <span class="
na">value=</span><span class="s">"cheeseyCheese"</span><span class="nt">/></span>
 <span class="nt"><entry</span> <span class="na">key=</span><span class="s">"integerParam"</span><span class="nt">></span>
 <span class="nt"><bean</span> <span class="na">class=</span><span class="s">"java.lang.Integer"</span><span class="nt">></span>
 <span class="nt"><constructor-arg</span> <span class="na">index=</span><span class="s">"0"</span> <span class="na">value=</span><span class="s">"4002"</span><span class="nt">/></span>
 <span class="nt"></bean></span>
 <span class="nt"></entry></span>
 <span class="nt"></map></span>
 <span class="nt"></property></span>
<span class="nt"></saxon:xslt></span>
</pre></div>
</div><p>In the XSL file, you can access the parameter values with <tt><
xsl:param/></tt>. You can also access headers on the NormalizedMessage (like e.g. <tt>org.apache.servicemix.file</tt>) with the same syntax.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><xsl:stylesheet</span> <span class="na">xmlns:xsl=</span><span class="s">'http://www.w3.org/1999/XSL/Transform'</span> <span class="na">version=</span><span class="s">'1.0'</span><span class="nt">></span>
 <span class="nt"><xsl:param</span> <span class="na">name=</span><span class="s">"stringParam"</span><span class="nt">/></span>
 <span class="nt"><xsl:param</span> <span class="na">name=</span><span class="s">"integerParam"</span><span class="nt">/></span>
 <span class="nt"><xsl:param</span> <span class="na">name=</span><span class="s">"org.apache.servicemix.file"</span> <span class="nt">/></span>
 ...
<span class="nt"></xsl:stylesheet></span>
</pr
e></div>
</div><h4 id="InlinedXQueryandspecificoutputconfigurationsaxonxquery">Inlined XQuery and specific output configuration (<tt>saxon:xquery</tt>)</h4><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xquery</span> <span class="na">service=</span><span class="s">"test:xquery-inline"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span><span class="nt">></span>
 <span class="nt"><saxon:query></span>
 for $x in /bookstore/book
 where $x/price > 30
 return $x/title
 <span class="nt"></saxon:query></span>
 <span class="nt"><saxon:outputProperties></span>
 <span class="nt"><saxon:property</span> <span class="na">key=</span><span class="s">"{http://saxon.sf.net/}wrap-result-sequence"</span><span class="nt">></span>yes<span class="nt"></saxon:property></span>
 <span class="nt"></saxon:ou
tputProperties></span>
<span class="nt"></saxon:xquery></span>
</pre></div>
</div><h4 id="DynamicXQueryselectionsaxonxquery">Dynamic XQuery selection (<tt>saxon:xquery</tt>)</h4><p>This endpoint configuration will dynamically load the XQuery resource that is specified in the <tt>xquery.source</tt> property on the <tt>NormalizedMessage</tt></p><div class="syntax"><div class="highlight"><pre><span class="nt"><saxon:xquery</span> <span class="na">service=</span><span class="s">"test:xquery-dynamic"</span> <span class="na">endpoint=</span><span class="s">"endpoint"</span><span class="nt">></span>
 <span class="nt"><saxon:expression></span>
 <span class="nt"><bean</span> <span class="na">class=</span><span class="s">"org.apache.servicemix.expression.PropertyExpression"</span><span class="nt">></span>
 <span class="nt"><property</span> <span class="na">name=</span><span c
lass="s">"property"</span> <span class="na">value=</span><span class="s">"xquery.source"</span> <span class="nt">/></span>
 <span class="nt"></bean></span>
 <span class="nt"></saxon:expression></span>
<span class="nt"></saxon:xquery></span>
</pre></div>
</div>
+ </div>
+
+ </div>
+ <div id="siteFooter">
+ © 2008-2012 The Apache Software Foundation - <a href="http://servicemix.apache.org/site/privacy-policy.html">Privacy Policy</a>
+ <br/>
+ Apache ServiceMix, ServiceMix, Apache, the Apache feather logo, and the Apache ServiceMix project logo are trademarks of The Apache Software Foundation.
+ </div>
+ </div>
+</body>
+</html>
\ No newline at end of file
Added: servicemix/site/production/docs/4.4.x/jbi/components/servicemix-scripting.html
URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.4.x/jbi/components/servicemix-scripting.html?rev=1388647&view=auto
==============================================================================
--- servicemix/site/production/docs/4.4.x/jbi/components/servicemix-scripting.html (added)
+++ servicemix/site/production/docs/4.4.x/jbi/components/servicemix-scripting.html Fri Sep 21 19:45:57 2012
@@ -0,0 +1,132 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Apache ServiceMix Documentation - </title>
+
+ <link href="../../theme/master.css" rel="stylesheet" type="text/css" />
+ <link href="../../theme/pygmentize.css" rel="stylesheet" type="text/css" />
+
+ <script type="text/javascript" src="../../scripts/jquery.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.cookie.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.jstree.js"></script>
+
+ <script>
+ $(document).ready(function(){
+ $("#nav").jstree({
+ "themes": {
+ "theme": "apple", "dots": false
+ },
+ "plugins" : [ "themes", "html_data", "cookies", "themes" ]
+ });
+ });
+ </script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-398545-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+</head>
+<body>
+ <div id="page">
+ <div id="siteHeader">
+ <table width="100%">
+ <tr valign="middle">
+ <td align="left">
+ <a href="http://servicemix.apache.org/" title="An open source ESB">
+ <img border="0" src="../../images/logodesign.png" height="80"/><img border="0" height="80" src="../../images/new-logo.png" />
+ </a>
+ </td>
+ <td align="right">
+ <a href="http://www.apache.org/" title="The Apache Sofware Foundation">
+ <img border="0" height="60" src="../../images/ASF-logo.png">
+ </a>
+ <ul class="siteNav">
+ <li><a href="../../index.html" title="Overview">Guides Overview</a></li>
+ <li><a href="../../contribute.html" title="Contributing?">Contributing?</a></li>
+ <li>
+ <form action="http://www.google.com/search" method="get" style="font-size: 10px;">
+ <input name="ie" type="hidden" value="UTF-8"></input>
+ <input name="oe" type="hidden" value="UTF-8"></input>
+ <input maxlength="255" name="q" size="15" type="text" value=""></input>
+ <input name="btnG" type="submit" value="Search"></input>
+ <input name="domains" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ <input name="sitesearch" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ </form>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="content">
+ <div id="nav">
+
+<ul>
+ <li id="jbi-introduction">
+ <a href="#">Introducing JBI</a>
+ <ul>
+ <li id="jbi-what-is-jbi">
+ <a href="../intro/what-is-jbi.html">What is JBI?</a>
+ </li>
+ <li id="jbi-meps">
+ <a href="../intro/meps.html">JBI MEPs</a>
+ </li>
+ <li id="jbi-api">
+ <a href="../intro/api.html">JBI API</a>
+ </li>
+ </ul>
+ </li>
+ <li id="jbi-components">
+ <a href="index.html">JBI Components</a>
+ <ul>
+ <li id="servicemix-bean"><a href="servicemix-bean.html">servicemix-bean</a></li>
+ <li id="servicemix-camel"><a href="servicemix-camel.html">servicemix-camel</a></li>
+ <li id="servicemix-cxf-bc"><a href="servicemix-cxf-bc.html">servicemix-cxf-bc</a></li>
+ <li id="servicemix-cxf-se"><a href="servicemix-cxf-se.html">servicemix-cxf-se</a></li>
+ <li id="servicemix-drools"><a href="servicemix-drools.html">servicemix-drools</a></li>
+ <li id="servicemix-eip"><a href="servicemix-eip.html">servicemix-eip</a></li>
+ <li id="servicemix-exec"><a href="servicemix-exec.html">servicemix-exec</a></li>
+ <li id="servicemix-file"><a href="servicemix-file.html">servicemix-file</a></li>
+ <li id="servicemix-ftp"><a href="servicemix-ftp.html">servicemix-ftp</a></li>
+ <li id="servicemix-http"><a href="servicemix-http.html">servicemix-http</a></li>
+ <li id="servicemix-jms"><a href="servicemix-jms.html">servicemix-jms</a></li>
+ <li id="servicemix-mail"><a href="servicemix-mail.html">servicemix-mail</a></li>
+ <li id="servicemix-osworkflow"><a href="servicemix-osworkflow.html">servicemix-osworkflow</a></li>
+ <li id="servicemix-quartz"><a href="servicemix-quartz.html">servicemix-quartz</a></li>
+ <li id="servicemix-saxon"><a href="servicemix-saxon.html">servicemix-saxon</a></li>
+ <li id="servicemix-scripting"><a href="servicemix-scripting.html">servicemix-scripting</a></li>
+ <li id="servicemix-snmp"><a href="servicemix-snmp.html">servicemix-snmp</a></li>
+ <li id="servicemix-validation"><a href="servicemix-validation.html">servicemix-validation</a></li>
+ <li id="servicemix-vfs"><a href="servicemix-vfs.html">servicemix-vfs</a></li>
+ <li id="servicemix-wsn2005"><a href="servicemix-wsn2005.html">servicemix-wsn2005</a></li>
+ <li id="servicemix-xmpp"><a href="servicemix-xmpp.html">servicemix-xmpp</a></li>
+ </ul>
+ </li>
+</ul>
+
+ </div>
+ <div id="body">
+ <div class="note">
+ <h1>JBI Support deprecated in Apache ServiceMix 4</h1>
+ <p>JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project.
+ Take a look at our <a href="../../users-guide/getting-started/technology-selection.html"</a>technology selection guidelines</a> for more information.</p>
+ </div>
+ <h2 id="servicemixscripting">servicemix-scripting</h2><h3 id="Overview">Overview</h3><p>The ServiceMix Scripting component provides support for processing scripts using JSR-223 compliant scripting languages.</p><p>The component is currently shipping with:</p><ul><li>Groovy (1.5.6)</li><li>JRuby (1.1.2)</li><li>Rhino JavaScript (1.7R1)</li></ul><h4 id="Namespaceandxbean.xml">Namespace and xbean.xml</h4><p>The namespace URI for the servicemix-bean JBI component is <tt>http://servicemix.apache.org/scripting/1.0</tt>. This is an example of an <tt>xbean.xml</tt> file with a namespace definition with prefix <tt>bean</tt>.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><beans</span> <span class="na">xmlns:scripting=</span><span class="s">"http://servicemix.apache.org/scripting/1.0"</span><span class="nt">></span>

 <span class="c"><!-- add scripting:endpoint here --></span>

<span class="nt
"></beans></span>
</pre></div>
</div><h4 id="Endpointtypes">Endpoint types</h4><p>The servicemix-scripting component defines a single endpoint type:</p><ul style="list-style: square"><li><tt>scripting:endpoint</tt> :: The scripting endpoint can be used to use scripts to handle exchanges or send new exchanges</li></ul><h3 id="scriptingendpoint"><tt>scripting:endpoint</tt></h3><h4 id="Endpointproperties">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> bindings </td><td class="confluenceTd"> <em>java.util.Map</em> </td><td class="confluenceTd"> A Map with additional variables that are made available during script execution. </td></tr><tr><td class="confluenceTd"> copyAttachments </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy the at
tachments into the 'out' message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> copyProperties </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Copy the properties into the 'out' message. Defaults to <code>true</code>. </td></tr><tr><td class="confluenceTd"> disableOutput </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Set this flag to true to <code>true</code> to avoid sending back a response message. Defaults to <code>false</code> </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> language </td><td class="co
nfluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The scripting language to be used. Defaults to <code>autodetect</code> to determine the language by the script file extension. </td></tr><tr><td class="confluenceTd"> logResourceBundle </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The resource bundle to use when logging internationalized messages. </td></tr><tr><td class="confluenceTd"> marshaler </td><td class="confluenceTd"> <em>org.apache.servicemix.scripting.ScriptingMarshalerSupport</em> </td><td class="confluenceTd"> Custom marshaler implementation to handle startup/shutdown, loading the script code and registering additional user beans. </td></tr><tr><td class="confluenceTd"> script </td><td class="confluenceTd"> <em>org.springframework.core.io.Resource</em> </td><td class="confluenceTd"> Spring Resource referring to the script location. </td></tr><tr><td class="confluenceTd"> scriptLogger </td><td cla
ss="confluenceTd"> <em>java.util.logging.Logger</em> </td><td class="confluenceTd"> returns the script logger </td></tr><tr><td class="confluenceTd"> service </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> targetEndpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> Target endpoint for the output exchange that is created by the script. </td></tr><tr><td class="confluenceTd"> targetInterface </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> Target interface for the output exchange that is created by the script. </td></tr><tr><td class="confluenceTd"> targetOperation </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> Target operation for the output exchange that is created by the script. </td></tr><tr>
<td class="confluenceTd"> targetService </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> Target service for the output exchange that is created by the script. </td></tr><tr><td class="confluenceTd"> targetUri </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> URI for configuring target service/endpoint/interface for the exchange that is created by the script. </td></tr></table></div>
+ </div>
+
+ </div>
+ <div id="siteFooter">
+ © 2008-2012 The Apache Software Foundation - <a href="http://servicemix.apache.org/site/privacy-policy.html">Privacy Policy</a>
+ <br/>
+ Apache ServiceMix, ServiceMix, Apache, the Apache feather logo, and the Apache ServiceMix project logo are trademarks of The Apache Software Foundation.
+ </div>
+ </div>
+</body>
+</html>
\ No newline at end of file
Added: servicemix/site/production/docs/4.4.x/jbi/components/servicemix-snmp.html
URL: http://svn.apache.org/viewvc/servicemix/site/production/docs/4.4.x/jbi/components/servicemix-snmp.html?rev=1388647&view=auto
==============================================================================
--- servicemix/site/production/docs/4.4.x/jbi/components/servicemix-snmp.html (added)
+++ servicemix/site/production/docs/4.4.x/jbi/components/servicemix-snmp.html Fri Sep 21 19:45:57 2012
@@ -0,0 +1,132 @@
+
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Apache ServiceMix Documentation - </title>
+
+ <link href="../../theme/master.css" rel="stylesheet" type="text/css" />
+ <link href="../../theme/pygmentize.css" rel="stylesheet" type="text/css" />
+
+ <script type="text/javascript" src="../../scripts/jquery.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.cookie.js"></script>
+ <script type="text/javascript" src="../../scripts/jquery.jstree.js"></script>
+
+ <script>
+ $(document).ready(function(){
+ $("#nav").jstree({
+ "themes": {
+ "theme": "apple", "dots": false
+ },
+ "plugins" : [ "themes", "html_data", "cookies", "themes" ]
+ });
+ });
+ </script>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-398545-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+ </script>
+</head>
+<body>
+ <div id="page">
+ <div id="siteHeader">
+ <table width="100%">
+ <tr valign="middle">
+ <td align="left">
+ <a href="http://servicemix.apache.org/" title="An open source ESB">
+ <img border="0" src="../../images/logodesign.png" height="80"/><img border="0" height="80" src="../../images/new-logo.png" />
+ </a>
+ </td>
+ <td align="right">
+ <a href="http://www.apache.org/" title="The Apache Sofware Foundation">
+ <img border="0" height="60" src="../../images/ASF-logo.png">
+ </a>
+ <ul class="siteNav">
+ <li><a href="../../index.html" title="Overview">Guides Overview</a></li>
+ <li><a href="../../contribute.html" title="Contributing?">Contributing?</a></li>
+ <li>
+ <form action="http://www.google.com/search" method="get" style="font-size: 10px;">
+ <input name="ie" type="hidden" value="UTF-8"></input>
+ <input name="oe" type="hidden" value="UTF-8"></input>
+ <input maxlength="255" name="q" size="15" type="text" value=""></input>
+ <input name="btnG" type="submit" value="Search"></input>
+ <input name="domains" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ <input name="sitesearch" type="hidden" value="servicemix.apache.org/docs/4.4.x"></input>
+ </form>
+ </li>
+ </ul>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="content">
+ <div id="nav">
+
+<ul>
+ <li id="jbi-introduction">
+ <a href="#">Introducing JBI</a>
+ <ul>
+ <li id="jbi-what-is-jbi">
+ <a href="../intro/what-is-jbi.html">What is JBI?</a>
+ </li>
+ <li id="jbi-meps">
+ <a href="../intro/meps.html">JBI MEPs</a>
+ </li>
+ <li id="jbi-api">
+ <a href="../intro/api.html">JBI API</a>
+ </li>
+ </ul>
+ </li>
+ <li id="jbi-components">
+ <a href="index.html">JBI Components</a>
+ <ul>
+ <li id="servicemix-bean"><a href="servicemix-bean.html">servicemix-bean</a></li>
+ <li id="servicemix-camel"><a href="servicemix-camel.html">servicemix-camel</a></li>
+ <li id="servicemix-cxf-bc"><a href="servicemix-cxf-bc.html">servicemix-cxf-bc</a></li>
+ <li id="servicemix-cxf-se"><a href="servicemix-cxf-se.html">servicemix-cxf-se</a></li>
+ <li id="servicemix-drools"><a href="servicemix-drools.html">servicemix-drools</a></li>
+ <li id="servicemix-eip"><a href="servicemix-eip.html">servicemix-eip</a></li>
+ <li id="servicemix-exec"><a href="servicemix-exec.html">servicemix-exec</a></li>
+ <li id="servicemix-file"><a href="servicemix-file.html">servicemix-file</a></li>
+ <li id="servicemix-ftp"><a href="servicemix-ftp.html">servicemix-ftp</a></li>
+ <li id="servicemix-http"><a href="servicemix-http.html">servicemix-http</a></li>
+ <li id="servicemix-jms"><a href="servicemix-jms.html">servicemix-jms</a></li>
+ <li id="servicemix-mail"><a href="servicemix-mail.html">servicemix-mail</a></li>
+ <li id="servicemix-osworkflow"><a href="servicemix-osworkflow.html">servicemix-osworkflow</a></li>
+ <li id="servicemix-quartz"><a href="servicemix-quartz.html">servicemix-quartz</a></li>
+ <li id="servicemix-saxon"><a href="servicemix-saxon.html">servicemix-saxon</a></li>
+ <li id="servicemix-scripting"><a href="servicemix-scripting.html">servicemix-scripting</a></li>
+ <li id="servicemix-snmp"><a href="servicemix-snmp.html">servicemix-snmp</a></li>
+ <li id="servicemix-validation"><a href="servicemix-validation.html">servicemix-validation</a></li>
+ <li id="servicemix-vfs"><a href="servicemix-vfs.html">servicemix-vfs</a></li>
+ <li id="servicemix-wsn2005"><a href="servicemix-wsn2005.html">servicemix-wsn2005</a></li>
+ <li id="servicemix-xmpp"><a href="servicemix-xmpp.html">servicemix-xmpp</a></li>
+ </ul>
+ </li>
+</ul>
+
+ </div>
+ <div id="body">
+ <div class="note">
+ <h1>JBI Support deprecated in Apache ServiceMix 4</h1>
+ <p>JBI 1.0 support is available in Apache ServiceMix 4 to allow existing users to migrate more easily to this latest version - if you're a new user, you should consider JBI deprecated and not use it for your project.
+ Take a look at our <a href="../../users-guide/getting-started/technology-selection.html"</a>technology selection guidelines</a> for more information.</p>
+ </div>
+ <h2 id="servicemixsnmp">servicemix-snmp</h2><h3 id="Overview">Overview</h3><p>The ServiceMix SNMP component provides support for receiving SNMP events via the enterprise service bus by using the SNMP4J library.</p><h4 id="Namespaceandxbean.xml">Namespace and xbean.xml</h4><p>The namespace URI for the servicemix-bean JBI component is <tt>http://servicemix.apache.org/snmp/1.0</tt>. This is an example of an <tt>xbean.xml</tt> file with a namespace definition with prefix <tt>bean</tt>.</p><div class="syntax"><div class="highlight"><pre><span class="nt"><beans</span> <span class="na">xmlns:snmp=</span><span class="s">"http://servicemix.apache.org/snmp/1.0"</span><span class="nt">></span>

 <span class="c"><!-- add snmp:poller or snmp:sender definitions here --></span>

<span class="nt"></beans></span>
</pre></div>
</div><h4 id="Endpointtypes">Endpoint types</h4><p>The servicemix-snmp compo
nent defines two endpoint types:</p><ul style="list-style: square"><li><tt>snmp:poller</tt> :: Periodically polls a device status using SNMP and sends the OIDs as a JBI MessageExchange</li><li><tt>snmp:trap-consumer</tt> :: Consumes an SNMP trap message and sends the OIDs as a JBI MessageExchange</li></ul><h3 id="snmppoller"><tt>snmp:poller</tt></h3><h4 id="Endpointproperties">Endpoint properties</h4><div class="table-wrap"><table class="confluenceTable"><tr><th class="confluenceTh"> Property Name </th><th class="confluenceTh"> Type </th><th class="confluenceTh"> Description </th></tr><tr><td class="confluenceTd"> address </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> <p>Specifies the connection URI used to connect to a snmp capable device. <br /><br /> <b><u>Template:</u></b> <br /> nbsp; i><rotocol><ost><ort>/i> <br /><br /> <b><u>Details:</u></b><br /><br/
> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td width="40%" align="left"><b><u>Name</u></b></td> <td width="60%" align="left"><b><u>Description</u></b></td> </tr> <tr> <td>protocol</td> <td>the protocol to use (udp or tcp)</td> </tr> <tr> <td>host</td> <td>the name or ip address of the snmp capable device</td> </tr> <tr> <td>port</td> <td>the port number to use</td> </tr> </table> <br/> <b><u>Example:</u></b><br /> nbsp; i>udp:192.168.2.122/161</i></p> <i> nbsp; he default value is <b>null</b></i><br/><br/> </td></tr><tr><td class="confluenceTd"> concurrentPolling </td><td class="confluenceTd"> <em>boolean</em> </td><td class="confluenceTd"> Sets whether more than one poll can be active at a time (true means yes). Default value is <code>false</code>. </td></tr><tr><td class="confluenceTd"> del
ay </td><td class="confluenceTd"> <em>long</em> </td><td class="confluenceTd"> Sets the amount of time in milliseconds that the endpoint should wait before making the first poll. </td></tr><tr><td class="confluenceTd"> endpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> The name of the endpoint. </td></tr><tr><td class="confluenceTd"> firstTime </td><td class="confluenceTd"> <em>java.util.Date</em> </td><td class="confluenceTd"> Sets the date on which the first poll will be executed. If a delay is also set using <code>setDelay</code>, the delay interval will be added after the date specified. </td></tr><tr><td class="confluenceTd"> interfaceName </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the interface exposed by the endpoint. </td></tr><tr><td class="confluenceTd"> marshaler </td><td class="confluenceTd"> <em>org.apache.servicemix.snmp.marshaler.Snmp
MarshalerSupport</em> </td><td class="confluenceTd"> <p>Specifies a marshaler class which provides the logic for converting a snmp response into a normalized message. This class has to implement the <code>SnmpMarshalerSupport</code> interface. If you don't specify a marshaler, the <code>DefaultSnmpMarshaler</code> will be used.</p> </td></tr><tr><td class="confluenceTd"> oids </td><td class="confluenceTd"> (<em>java.lang.Object</em>)\* </td><td class="confluenceTd"> <p>Specifies a reference to a list of OID values which will be used for the snmp request. You have two possibilities how to specify the value: <br /><br /> i>a) referencing to a file containing a list of OID values separated by a line feed <br/> nbsp; nbsp;or<br/> i>b) defining a coma (<b>,</b>) separated list of OID values <br /><br /> <b><u>Examples:</u></b><br /> nbsp; i>a) oids="classpath:myOids.txt"<br /> nb
sp; nbsp; nbsp; ids="file:/home/lhein/snmp/device_a/oids.txt"<br/> <br /> nbsp; i>b) oids="1.3.6.1.2.1.1.3.0 , 1.3.6.1.2.1.25.3.2.1.5.1 , 1.3.6.1.2.1.25.3.5.1.1.1 , 1.3.6.1.2.1.43.5.1.1.11.1"</i></p> <i> nbsp; he default value is <b>null</b></i><br/><br/> </td></tr><tr><td class="confluenceTd"> period </td><td class="confluenceTd"> <em>long</em> </td><td class="confluenceTd"> Sets the number of milliseconds between polling attempts. </td></tr><tr><td class="confluenceTd"> retries </td><td class="confluenceTd"> <em>int</em> </td><td class="confluenceTd"> <p>Specifies the connection retries.</p> <i> nbsp; he default value is <b>2</b></i><br/><br/> </td></tr><tr><td class="confluenceTd"> scheduler </td><td class="confluenceTd"> <em>org.apache.servicemix.common.scheduler.Scheduler</em> </td><td class="confluenceTd"> Set a custom Scheduler implementation if you need more fine-grain
ed control over the polling schedule. </td></tr><tr><td class="confluenceTd"> service </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> The qualified name of the service the endpoint exposes. </td></tr><tr><td class="confluenceTd"> snmpCommunity </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> <p>Specifies the snmp community to use.</p> <i> nbsp; he default value is <b>"public"</b></i><br/><br/> </td></tr><tr><td class="confluenceTd"> snmpVersion </td><td class="confluenceTd"> <em>int</em> </td><td class="confluenceTd"> <p>Specifies the snmp protocol version to use.</p> <i> nbsp; he default value is <b>0 (version 1)</b></i><br/><br/> </td></tr><tr><td class="confluenceTd"> targetEndpoint </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> the name of the endpoint to which requests are sen
t </td></tr><tr><td class="confluenceTd"> targetInterface </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the interface to which requests are sent </td></tr><tr><td class="confluenceTd"> targetOperation </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the operation to which requests are sent </td></tr><tr><td class="confluenceTd"> targetService </td><td class="confluenceTd"> <em>javax.xml.namespace.QName</em> </td><td class="confluenceTd"> the QName of the service to which requests are sent </td></tr><tr><td class="confluenceTd"> targetUri </td><td class="confluenceTd"> <em>java.lang.String</em> </td><td class="confluenceTd"> Set the target service/endpoint/interface using a URI. </td></tr><tr><td class="confluenceTd"> timeout </td><td class="confluenceTd"> <em>int</em> </td><td class="confluenceTd"> <p>Specifies the connection time out in millisecond
s.</p> <i> nbsp; he default value is <b>1500</b></i><br/><br/> </td></tr></table></div><h3 id="vfstrapconsumer"><tt>vfs:trap-consumer</tt></h3><h4 id="Endpointproperties2">Endpoint properties</h4>
+ </div>
+
+ </div>
+ <div id="siteFooter">
+ © 2008-2012 The Apache Software Foundation - <a href="http://servicemix.apache.org/site/privacy-policy.html">Privacy Policy</a>
+ <br/>
+ Apache ServiceMix, ServiceMix, Apache, the Apache feather logo, and the Apache ServiceMix project logo are trademarks of The Apache Software Foundation.
+ </div>
+ </div>
+</body>
+</html>
\ No newline at end of file