i want to know a simple way of implementing callback mechanism in Rserve for a java client . According to Rserve docs :
Rserve provides no callback functionality. Your application could implement callbacks via TCP/IP and the R sockets but it is not a part of Rserve.
This means my java client can call functions on the remote Session through Rconnection reference , but the remote Session cannot call back the java client which has instantiated it . How can i develop such a mechanism . If its through R sockets or a tcp/ip server , does that mean for every connection there will be a socket server open ?
Here is the answer I found on the http://statweb.stanford.edu/~lpekelis/13_datafest_cart/13_datafest_r_talk.pdf and at http://www.rforge.net/JRI/files/
Start with the instance of R
Here is the code you can see for the call back:

Also, check the links for further reference. I didn't got who is the author otherwise I would have mentioned it.