Question: There are two machine A and B.
Install a software or a service in the machine B.
Now,machine A through the remoting access the machine B.
how to monitor this action.

Answer: 
```
public class B {
  void f1(){}   
}

public class A extends B {
  void f2(){}
}

void main(String[] args) {
  A a =  new A();
  a.f2();
}

```
Only like this :)

```
void main(String[] args) {
  B a =  new B();
  a.f2();
}

```