| Author |
RMI - how the server knows what the client invoked?
|
mahdi sa
Greenhorn
Joined: Jan 03, 2013
Posts: 1
|
|
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
Joined: Sep 19, 2005
Posts: 288
|
|
|
How about just keeping a list of callers yourself.
|
Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
|
 |
Vijitha Kumara
Bartender
Joined: Mar 24, 2008
Posts: 3670
|
|
|
Your implementation just returns the values instead printing them?
|
SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
|
 |
 |
|
|
subject: RMI - how the server knows what the client invoked?
|
|
|