Skip to content
Prev 297534 / 398498 Next

R <--> JVM

Hello,

first of all thanks to both of you for your fast response.
Going back to Michael's wonderful ASCII art masterpiece, what we have now is something like this:

-------  JVM -----------

   ----  JAVA  ----

          JDBC
               |
               |
        Algorithm
               |
    ---- JAVA ----
-------  JVM -----------
              |
           RNI
              |
             R

What we want is something like the following (on the same virtual machine):

-------  JVM1 -----------			-------  JVM2 -----------

   ----  JAVA  ----				----  JAVA  ----

          JDBC						JDBC
               |						|
               |						|
        Algorithm					Algorithm	
               |						|
    ---- JAVA ----				---- JAVA ----	
-------  JVM1 -----------			-------  JVM2 -----------
              |						|
           RNI					     RNI	
              |						|
             R(1)						R(2)

My question is: is that possible ? How can I address R(1) from JVM1 and R(2) from JVM2 ? Is data calculated in R(1) and R(2) completely independent or the 2 instances "share" something in memory ?
Thanks again for you kindness and help.

Angelo		

-----Messaggio originale-----
Da: Oliver Ruebenacker [mailto:curoli at gmail.com] 
Inviato: venerd? 15 giugno 2012 17.36
A: R. Michael Weylandt
Cc: LINARDI ANGELO; r-help at r-project.org
Oggetto: Re: [R] R: Securities earning covariance


     Hello,

On Fri, Jun 15, 2012 at 10:15 AM, R. Michael Weylandt
<michael.weylandt at gmail.com> wrote:
I think he means driving the R framework from Java via JNI. I think
the questions boils down to whether you can open multiple independent
R sessions on the same system and then address them separately via JNI
(I don't know, but I would assume you can do that without multiplying
the installation).

     Take care
     Oliver