Forum: JRuby jsr223 legacy behaviour

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Francesco Malvezzi (Guest)
on 2015-01-29 12:07
(Received via mailing list)
hi all,

I have to write a jsr223 jruby script for the attribute resolver of

I'm a bit lost to get right the Context Instance Type switches from

My problem is:
 container inject variables as constants, and different concurrent
invocations of a script overwrite each other data.

Well, I believe it's something related with the Context Instance Type,
but maybe I'm wrong.

What I can say for sure is that the jruby scripts work fine with
jruby-1.0.0.jar and a legacy jruby-engine-20080611.jar.

Which configurations let a modern jruby.jar to work in emulation of the
jsr223 behaviour of jruby-engine-20080611?

thank you,

Yoko Harada (Guest)
on 2015-01-29 18:03
(Received via mailing list)
Hi Francesco,

Context Type: SingleThread
Variable Behavior: Global Local

should work the same as jsr223  reference implementation,

Defaults are Singleton and Transient, so you need to explicitly specify
values. But, global local variable behavior is set when JSR223 engine is
instantiated as far as I know.

Hope this helps,
- Yoko

On Thu, Jan 29, 2015 at 6:05 AM, Francesco Malvezzi <
Francesco Malvezzi (Guest)
on 2015-01-30 08:38
(Received via mailing list)
Il 29/01/15 17:59, Yoko Harada ha scritto:
> engine is instantiated as far as I know.
> Hope this helps,
> - Yoko

Are these the correct settings according to your kind response?

jetty    28117  9.7 40.5 2776288 835200 ?      Sl   08:18   1:28
/usr/bin/java -Xmx1024m -XX:MaxPermSize=128m
-Didp.home=/opt/shibboleth-idp -Djetty.home=/opt/jetty
-Djetty.base=/opt/jetty-base -jar
/opt/jetty/start.jar jetty-started.xml

If yes, unfortunately, it does not fix my issue:
globals carry on getting overwritten.

Thank you,

This topic is locked and can not be replied to.