Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-09 Thread Rob Heittman
> That's very helpful. Tests for embedding API are under JRuby's > test/org/jruby/embed directory. There would be the good place to put > in. But, you don't need to add the test in existing files. The test > won't be simple like others. I hope they won't be too complex, but I'll make a ClassLoader

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-09 Thread Yoko Harada
On Wed, Feb 9, 2011 at 12:12 AM, Rob Heittman wrote: > Works great! I updated via rvm to jruby-head 3d4720 (bc6fb9+2) and > built with "ant dist", then replaced my hack with > jruby-complete-1.6.0-RC2.jar from that build. Added: > >    System.setProperty("org.jruby.embed.classloader", "context");

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-09 Thread Yoko Harada
On Tue, Feb 8, 2011 at 10:00 PM, Rob Heittman wrote: >> I pushed the change by the commit, bc6fb9c. Would you help me to test >> the change is really working? Custom classloader issue is not easy to >> break down to a simple test case. > > Yes, I'll pull it now and replace my version -- will post

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Rob Heittman
Works great! I updated via rvm to jruby-head 3d4720 (bc6fb9+2) and built with "ant dist", then replaced my hack with jruby-complete-1.6.0-RC2.jar from that build. Added: System.setProperty("org.jruby.embed.classloader", "context"); to my Activator. App worked as before. Thanks! I like the ch

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Rob Heittman
> I pushed the change by the commit, bc6fb9c. Would you help me to test > the change is really working? Custom classloader issue is not easy to > break down to a simple test case. Yes, I'll pull it now and replace my version -- will post with the results. > Interesting. Do you have blog post or s

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
I pushed the change by the commit, bc6fb9c. Would you help me to test the change is really working? Custom classloader issue is not easy to break down to a simple test case. On Tue, Feb 8, 2011 at 3:56 PM, Rob Heittman wrote: > Great! I've been running a modified version of 1.6.0RC1 that supports

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Rob Heittman
Great! I've been running a modified version of 1.6.0RC1 that supports the context method. This helps me on a multitenant system where each tenant has its own JRuby engine, which knows how to load classes from that tenant's GridFS. I used to have to do this with JRuby-specific code to create a JRub

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
On Tue, Feb 8, 2011 at 2:28 PM, Rob Heittman wrote: > Well, now that you laid it out much more clearly than I managed ... how about: > > - context > container.setClassLoader(Thread.currentThread().getContextClassLoader()); > > - container > container.setClassLoader(container.getClass().getClassLoa

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Rob Heittman
Well, now that you laid it out much more clearly than I managed ... how about: - context container.setClassLoader(Thread.currentThread().getContextClassLoader()); - container container.setClassLoader(container.getClass().getClassLoader()); - none // won't set any classloader ... since what we'r

Re: [jruby-dev] 1.6.0 JRuby Embed classloaders

2011-02-08 Thread Yoko Harada
Hi Rob, Good suggestion! On Sun, Feb 6, 2011 at 1:08 AM, Rob Heittman wrote: > Hi Yoko and all, > > 1.6.0 introduces a new system property to control a useful new > behavior in the JSR223 implementation: > > org.jruby.embed.classloader: current | none > > as documented here: > http://yokolet.blo