RE: Executing Groovy DSL scripts concurrently

2018-02-13 Thread Korbee Reinout
ssLoader, I can do it.Thanks for pointing it out! -Ralph Johnson On Mon, Feb 12, 2018 at 2:10 AM, Korbee Reinout mailto:reinout.kor...@snb.ch>> wrote: [Boxbe]<https://www.boxbe.com/overview>[http://www.boxbe.com/stfopen?tc_serial=36637963201&tc_rand=1084693400&utm_source=

RE: Executing Groovy DSL scripts concurrently

2018-02-12 Thread Korbee Reinout
Hi, According to: http://docs.groovy-lang.org/latest/html/documentation/guide-integrating.html “You must be very careful when using shared data in a multithreaded environment. The Binding instance that you pass to GroovyShell is not thread safe, and shared by all scripts.” There are some guid

RE: ClassLoader issue when loading custom DSL with GroovyScriptEngine

2016-03-29 Thread Korbee Reinout
I don't see why you need the GroovyScriptEngine. Maybe the GroovyShell would be the more appropriate choice to run scripts in this example? In a similar situation in an OSGi bundle I have used: GroovyClassLoader GROOVY_CLASSLOADER = new GroovyClassLoader(); Class clazz = GROOVY_CLASSLOADER.parse