Skip to content

Commit

Permalink
Use JavaScript instead of Ruby
Browse files Browse the repository at this point in the history
https://build.spring.io/browse/INT-SI43X-230

Looks like Ruby engine takes some time to start and
`Jsr223InboundChannelAdapterTests` is slow as 3 seconds locally as well

* Change the script to JavaScript and now we have 200 millis

**Cherry-pick to 4.3.x**

(cherry picked from commit c48a239)
  • Loading branch information
artembilan committed Jan 24, 2018
1 parent f5a00af commit db52adc
Showing 1 changed file with 3 additions and 6 deletions.
Expand Up @@ -13,13 +13,10 @@

<inbound-channel-adapter channel="inbound-channel-adapter-channel">
<poller max-messages-per-poll="1" fixed-delay="100"/>
<script:script lang="ruby">
<script:script lang="javascript">
<![CDATA[
require "java"
java_import 'java.util.Date'
Date.new
]]>
(function(){ return new (Java.type('java.util.Date'))(); })();
]]>
</script:script>
<header name="foo" value="bar"/>
</inbound-channel-adapter>
Expand Down

0 comments on commit db52adc

Please sign in to comment.