I'd like to be able to provide an Interface to some kind of proxying
mechanism that returns a Java Object interface to a Ruby object.  In
particular, I would like this to allow writing of EJB Bean Classes in
Ruby, but I think the functionality would be nice in the general case as
well.

Derek

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas E
Enebo
Sent: Wednesday, February 08, 2006 9:40 AM
To: [email protected]
Subject: Re: [Jruby-devel] Importing Ruby into Java

On Wed, 08 Feb 2006, Berner, Derek, OSE defenestrated me:
> 
> I know JRuby is good at importing Java classes into Ruby - but what 
> about vice versa?  I know there are standard classes (RubyString, 
> RubyArray, IRubyObject etc)... But I need to be able to access Ruby 
> objects directly through Java (not by delegating to the runtime) for 
> the J2RubEE project.  Is there a good way of doing this?  I was 
> thinking of autogenerating CGLIB proxies.  Is there a simpler way?

  Can you explain why you want this ability?  I may have an alternative 
(or may not).   Mostly, I just want to understand what sorts of things
people want to do.

  We really have no mechanism for this.  It seems brittle at this point
to say you can start doing stuff to an IRubyObject from Java from an
outside JRuby internals perspective.

> Also, does JRuby use Java Reflection or CGLIB?

  It currently uses Java reflection.  I have a patch using CGLIB though
(unfinished).  That is currently in the realm of experiment.

-Tom

-- 
+ http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist  | "Luck favors the prepared    |
|                              |  mind." -Louis Pasteur       |


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files for problems?  Stop!  Download the new AJAX search engine that
makes searching your log files as easy as surfing the  web.  DOWNLOAD
SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel


Confidentiality Notice: This e-mail, including all attachments is for the sole 
use of the intended recipient(s) and may contain confidential and privileged 
information. Any unauthorized review, use, disclosure or distribution is 
prohibited unless specifically provided under the New Mexico Inspection of 
Public Records Act. If you are not the intended recipient, please contact the 
sender and destroy all copies of this message. -- This email has been scanned 
by the Sybari - Antigen Email System. 





-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to