Re: [jruby-user] jsr223 legacy behaviour
Yoko Harada <[email protected]> Thu, 29 Jan 2015 11:59:33 -0500
| Newsgroups | gmane.comp.lang.jruby.user |
|---|---|
| Message-ID | <CAMWY0E_ANGJr0gcT0V13yRz18auojbZOPLjKGEyhtydhyvtvaQ@mail.gmail.com> |
Hi Francesco, Context Type: SingleThread Variable Behavior: Global Local should work the same as jsr223 reference implementation, jruby-engine-20080611. Defaults are Singleton and Transient, so you need to explicitly specify the 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 < [email protected]> wrote: > hi all, > > I have to write a jsr223 jruby script for the attribute resolver of > shibboleth-idp > ( > https://wiki.shibboleth.net/confluence/display/IDP30/ScriptedAttributeDefinition > ). > > I'm a bit lost to get right the Context Instance Type switches from > https://github.com/jruby/jruby/wiki/RedBridge. > > 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, > > Francesco > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >