Element Summary

ElementDescriptionClass
componentServiceMix Scriptingorg.apache.servicemix.scripting.ScriptingComponent
endpointorg.apache.servicemix.scripting.ScriptingEndpoint

Element Detail

Element: component

ElementTypeDescription
endpoints(endpoint)*
executorFactory<spring:bean/>The executor factory to use to create the executor. If none is provided, one will be retrieved from the JBI container when the component is deployed into ServiceMix 3.x, or a default implementation will be used.

Element: endpoint

AttributeTypeDescription
copyAttachmentsxs:booleanCopy the attachments into the 'out' message. Defaults to true.
copyPropertiesxs:booleanCopy the properties into the 'out' message. Defaults to true.
disableOutputxs:booleanSet this flag to true to true to avoid sending back a response message. Defaults to false
endpointxs:string

Get the endpoint implementation.

interfaceNamexs:QName

Get the qualified name of the endpoint interface.

languagexs:stringThe scripting language to be used. Defaults to autodetect to determine the language by the script file extension.
logResourceBundlexs:stringThe resource bundle to use when logging internationalized messages.
servicexs:QName

Get the service qualified name of the endpoint.

targetEndpointxs:stringTarget endpoint for the output exchange that is created by the script.
targetInterfacexs:QNameTarget interface for the output exchange that is created by the script.
targetOperationxs:QNameTarget operation for the output exchange that is created by the script.
targetServicexs:QNameTarget service for the output exchange that is created by the script.
targetUrixs:stringURI for configuring target service/endpoint/interface for the exchange that is created by the script.
ElementTypeDescription
bindings<spring:bean/>A Map with additional variables that are made available during script execution.
marshaler<spring:bean/>Custom marshaler implementation to handle startup/shutdown, loading the script code and registering additional user beans.
script<spring:bean/>Spring Resource referring to the script location.
scriptLogger<spring:bean/>returns the script logger