I am using RMI for the network mode.
A class called DataServer which extends UnicastRemoteObject and implements an Interface called IData (all public methods from Data.java).
within the class DataServer, I implements a method called bookFlight.
Method bookFlight does locking a record, read, modify and unlock.
when I read a record, got latest seat number from Data.java, then comparing with the request seat number from GUI, either insufficient or ok.
I want to provide a message to the client if the seats not enough for reservation. Because this is in the network mode, client is talking to server using RMI, so how do I implement this functionality talking back from server to client?
can someone give me some idea? appreciated in advance.