From s.p.pears at hotmail.co.uk  Fri Jan 12 12:41:09 2007
From: s.p.pears at hotmail.co.uk (Simon Pears)
Date: Fri, 12 Jan 2007 11:41:09 +0000
Subject: [Rd] Using R as a server to process multiple requests
Message-ID: <BAY108-F2152944E7D1D0013854E80E4B00@phx.gbl>

Hi

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!



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