I have developed an application in
Java RMI which returns factorial of a number to client. Also I set a limitation value in server side. Like during starting the server it can decide upto which limit it will let the client to do the factor. For example if the server set the value 10 than client can get the factorial value upto 10. If client input the value more than 10 it will get an error message. Now I want to return the factorial value to server class also. I know I am doing something wrong but I am not understanding what I am doing wrong. Following is my code.
Interface class - FacInt
Implement class - FacImpl
Server class - FacServer
Client class - FacClient
Here is my server and client input/output respectively.
Server
Client
I understand here FacImpl class returns the value before client connected. How can I do that after client connects?