Yoko H. wrote:
OSGi application doesn’t work on RedBridge.
Sorry could you be more specific, do you mean
a) application code in an OSGI bundle invoke Ruby code which is also
stored in a bundle
b) framework-interfacing code or a full OSGI application cannot be
implemented Ruby: eg. activator, services,etc…
if other classes are needed to run the application, RedBridge will fail to load such classes.
I’ve embedded ruby code into an Eclipse/Equinox OSGI, using all
possible technologies (direct, BSF, JSR223, JRuby Embed), various
versions.
Calling from java to ruby and vice-versa is working fine (ie. option
a. above) from the same and different bundles, too.
That is: using classloader tricks like Eclipse-BuddyPolicy - not sure
how to make that work with vanilla OSGI, though.
If JRuby somehow could do that out of the box, being a well behaved,
generic bundle - that would be great.
Another problem I’ve run into is: in the Java6+JSR223+OSGI
combination, how can the built-in ScriptEngineManager find
JRubyScriptEngine - which is provided by the org.jruby bundle (ie.
walled behind BundleClassLoader).
With Java5 i didn’t have such a problem as I packaged even the base
JSR223 stuff as a bundle, with proper dependencies,classloader
configuration.
I’m just curious - although planning to switch to the new Redbridge
anyway which shall really simplify the story.
Thanks,Gergo
2010/4/19 Yoko H. [email protected]:
-Yoko
yokolet's notelets: RedBridge, what are new and improved in JRuby 1.5.0RC1,
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email