• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI - how the server knows what the client invoked?

 
mahdi sa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program in which there are these classes:
RMIServer,
RMIClient,
RMIImplementation,
RMIInterface

which are as follows:

RMIServer:


RMIClient:



RMIInterface:



RMIImplementation:


(This program is for a test purpose. The test is done in one machine.)

Well, the client makes calls to the remote object, sending some parameters.

I want the RMIServer to print out the summary of the calls made from the client to the remote object. What should I do to have access to such information?

I want the output to look like this:

RMI Server started
RMIImplementation instance created and ready to serve
RMI service called for :
tonny (30)
john (26)
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about just keeping a list of callers yourself.
 
Vijitha Kumara
Bartender
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your implementation just returns the values instead printing them?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic