On Sun, Nov 21, 2010 at 2:42 PM, Anton Dorozhkin
<anton.dorozh...@gmail.com> wrote:
> Hello,
>
> Is there way you use several clojure runtime instances in one Java
> process?
>
> // Thread 1
> RT.loadResourceScript("script1");
> RT.var("user", "function").invoke();
>
> // Thread 2
> RT.loadResourceScript("script2");  // <----I want to be in a different
> clojure runtime here
> RT.var("user", "function").invoke();
>
> Is there another way, not to use RT class?

See if RT is instantiable. Maybe the static methods just use a default instance?

Failing that you'll need to use ClassLoader trickery to spawn two
distinct instances of RT.class.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to