> 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
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");
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
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
> 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
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
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
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
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
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
10 matches
Mail list logo