[Rd] Using R as a server to process multiple requests

From: Simon Pears <s.p.pears_at_hotmail.co.uk>
Date: Fri 12 Jan 2007 - 11:41:09 GMT


Has anyone experience of using R as a server to procuess multiple Java client requests. I am aware of RServe. However, in a Windows environment I think only one connection at a time is allowed.

Has anyone used spawning a R Process from Java for each request, e.g

Process process = Runtime.getRuntime().exec(rExecutable) BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()), buffSize); BufferedReader br = new BufferedReader(new InputStreamReader(process.getInputStream()), buffSize); BufferedReader be = new BufferedReader(new InputStreamReader(process.getErrorStream()), buffSize);

Regards Simon

Be the first to hear what's new at MSN - sign up to our free newsletters!

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Jan 12 22:47:09 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 Jan 2007 - 12:31:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.