On Mon, 26 Jun 2006, James E. Ervin defenestrated me: > > Hello there JRuby developers. I am the author of an Eclipse scripting > tool called Groovy Monkey (http://groovy-monkey.sourceforge.net/update > ) that is a set of enhancements on the Eclipse Monkey tool. > > One of the most significant enhancements I added was the ability to > write the monkey scripts in a number of languages including Ruby > through your JRuby (using version 0.8.3). > > For the most part I found it seamless to integrate through the Bean > Scripting Framework except for one part. When I tried to modify the > class loader used by the ruby runtime in order to add classes needed > for a script from another bundle plugin, it failed. I was able to hack > it by modifying your JavaSupport class to not just use the classloader > for the JavaSupport class, but check to see if there is a context > classloader set and to use it instead. I don't particularly like this > hack, but it seems to work for my application. I did notice however, > that in the BSFManager class in the BSF framework that there is a > method to set the class loader to use and it seems as though that > should probably be the one?
This seems like a good idea. One of my tasks for 0.9.1 is to consolidate embedding better and I can add this in at the same time. It will certainly be desired by other embedders. -Tom -- + http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur | Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel