blob: ec5b248acd48e9891e55602047a1781ae44d741b [file] [log] [blame]
h2. servicemix-scripting
h3. Overview
The ServiceMix Scripting component provides support for processing scripts using JSR-223 compliant scripting languages.
The component is currently shipping with:
* Groovy (1.5.6)
* JRuby (1.1.2)
* Rhino JavaScript (1.7R1)
h4. Namespace and xbean.xml
The namespace URI for the servicemix-bean JBI component is {{http://servicemix.apache.org/scripting/1.0}}. This is an example of <filename>xbean.xml</filename> file with a namespace definition with prefix {{bean}}.
{pygmentize:lang=xml}
<beans xmlns:scripting="http://servicemix.apache.org/scripting/1.0">
<!-- add scripting:endpoint here -->
</beans>
{pygmentize}
h4. Endpoint types
The servicemix-scripting component defines a single endpoint type:
- {{scripting:endpoint}} :: The scripting endpoint can be used to use scripts to handle exchanges or send new exchanges