| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| |
| <beans xmlns:scripting="http://servicemix.apache.org/scripting/1.0" |
| xmlns:replaceMe="http://servicemix.apache.org/replaceMe" |
| xmlns:util="http://www.springframework.org/schema/util" |
| xmlns="http://www.springframework.org/schema/beans" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://servicemix.apache.org/scripting/1.0 http://servicemix.apache.org/schema/servicemix-scripting-@{components-version}.xsd |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd |
| http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd"> |
| |
| <!-- BEGIN SNIPPET: groovy-jsr223 --> |
| <scripting:endpoint |
| service="replaceMe:serviceName" |
| endpoint="groovy-jsr223" |
| script="classpath:GroovyExchangeProcessorJSR223.groovy" |
| bindings="#customBindings"> |
| </scripting:endpoint> |
| <!-- END SNIPPET: groovy-jsr223 --> |
| |
| <!-- BEGIN SNIPPET: jruby-jsr223 --> |
| <scripting:endpoint |
| service="replaceMe:serviceName" |
| endpoint="jruby-jsr223" |
| script="classpath:RubyExchangeProcessorJSR223.rb" |
| bindings="#customBindings"> |
| </scripting:endpoint> |
| <!-- END SNIPPET: jruby-jsr223 --> |
| |
| <!-- BEGIN SNIPPET: javascript-jsr223 --> |
| <scripting:endpoint |
| service="replaceMe:serviceName" |
| endpoint="javascript-jsr223" |
| script="classpath:JSExchangeProcessorJSR223.js" |
| bindings="#customBindings"> |
| </scripting:endpoint> |
| <!-- END SNIPPET --> |
| |
| <util:map id="customBindings"> |
| <entry key="answerGroovy" value="JSR-223 with Groovy is working fine..." /> |
| <entry key="answerJRuby" value="JSR-223 with JRuby is working fine..." /> |
| <entry key="answerJS" value="JSR-223 with JavaScript is working fine..." /> |
| </util:map> |
| |
| </beans> |