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:
ii) There does not exist -- to my knowledge -- an implementation of R which runs on the JVM.
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
Oliver Ruebenacker Bioinformatics Consultant (http://www.knowomics.com/wiki/Oliver_Ruebenacker) Knowomics, The Bioinformatics Network (http://www.knowomics.com) SBPAX: Turning Bio Knowledge into Math Models (http://www.sbpax.org) ** Le e-mail provenienti dalla Banca d'Italia sono trasmesse in buona fede e non comportano alcun vincolo ne' creano obblighi per la Banca stessa, salvo che cio' non sia espressamente previsto da un accordo scritto. Questa e-mail e' confidenziale. Qualora l'avesse ricevuta per errore, La preghiamo di comunicarne via e-mail la ricezione al mittente e di distruggerne il contenuto. La informiamo inoltre che l'utilizzo non autorizzato del messaggio o dei suoi allegati potrebbe costituire reato. Grazie per la collaborazione. -- E-mails from the Bank of Italy are sent in good faith but they are neither binding on the Bank nor to be understood as creating any obligation on its part except where provided for in a written agreement. This e-mail is confidential. If you have received it by mistake, please inform the sender by reply e-mail and delete it from your system. Please also note that the unauthorized disclosure or use of the message or any attachments could be an offence. Thank you for your cooperation. **