views:

143

answers:

2

Please tell me if it's possible to do the following thing :

  • create an instance of a specific class in Java
  • pass it to JRuby to do something with it
  • continue using the "modified" version in Java

Please provide a small working example if it's not too much to ask .

EDIT : turns out embedding was the simplest way to achieve this . More informations are available HERE

+2  A: 

Yes it's possible. This page on the JRuby wiki should get you started.

digitalsanctum
A: 

This was the solution I used : Direct JRuby embedding

Geo