Re: [ROOT] ROOT, Java and remote script execution

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Thu Oct 05 2000 - 02:30:40 MEST


Hi Anton,

  why so complicated (DCOM, Corba, Java, etc.)? Using the ROOT infrastructure 
(TSocket, TServerSocket, TMessage, etc.) it is trivial to write a client/server
system where you send objects, commands and scripts from client to 
server for execution and resultant objects ans output back. This is what
is done in the PROOF prototype that I am now extending to a general facility.

Have for example a look at the class TProofServ which is the server
part of PROOF (http://root.cern.ch/lxr/source/proof/src/TProofServ.cxx#135).
There you will find a number of methods where text and object are send
and received. Another good starting point are the macros in tutorials:
hclient.C and hserv.C

Basically the ROOT infrastructure has the same facilities as Java RMI.

 
Cheers, Fons.



On Wed, Oct 04, 2000 at 12:51:04PM +0000, KOSU_FOKIN@garbo.lucas.lu.se wrote:
> Hi Suzanne and rooters,
> 
> turning back to ROOT/Java bridge... Have you got any farther success
> with the development? Anyhow, could you comment my thoughts about 
> remote ROOT script execution? It is very good that we can read ROOT
> files via rootd or httpd but what I would like to be able to do is
> to have a client-server scheme which lets a user to write scripts on
> his/her side (for example in my R-Quant Data Analysis Studio), execute
> it on a powerful server where the data files are located and then get
> back resulting ROOT objects (Graphs, Hists or just numbers). I assume you
> have an experience of working with Java and other object distributed
> client/server models. Could you comment the above? Could you suggest
> any existinf scheme (DCOM, Corba or whatsoever) that ROOT can try to follow?
> I think this feature can be very helpful for the whole community.
> 
> Best regards,
> Anton 
> 
> 
> -------
> 
> I also want to reiterate that the ROOT Java package will NOT make the ROOT
> classes available in Java. It simply adds the cabability to ROOT to be
> operated over the net with an applet or application in a client server mode.
> The fact that it is written in Java is acctually irrelevant.
> 
> Are you planning on using it and if so what for? This is important to know
> for me, so that I may consider your needs. Please send me a brief
> description.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7677910



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET