-
1. Re: Execution side : client or server ?
pvamstel Dec 6, 2002 1:08 AM (in response to luigifonti)This is a very strange thing.
Are you sure??? -
2. Re: Execution side : client or server ?
neitzel1 Dec 6, 2002 3:07 AM (in response to luigifonti)Just describe what you have done. In the moment I can emagine two things:
1) You get a RMI-Object. Then everything is done in the server. So normaly you get a Session and in your Session you call a function.
PlayerSession mysession;
...
mysession.doSomething();
->> doSomething is done at the Server!
2) You call a function, that returns an Object and then you call a Function on that Object.
PlayerSession mysession;
...
mysession.getObject().doSomething();
--> getObject() is called on the Server. This call returns
an Object. Then this Object is on your client. On this local Object you are calling a function and this is (of course) called localy!
Maybe it's clearer if you divide it into parts:
PlayerSession mysession;
...
MyObj obj = mysession.getObject(); // remote call
obj.doSomething(); // local Call - obj is a local Object
If you have done something different: Feel free to describe it and maybe I (or somebody else) could explain you, what happens.
Konrad