Let’s focus on what we need to do to keep Rachel’s life as simple as possible. In other words, what impact does adding JNDI and RMI have on the controller?
3 steps to using a remote object
Kim, the model guy, registers his model component with the JNDI service.
When Rachel’s controller gets a request, the controller code does a JNDI lookup to get the stub proxy for Kim’s remote model service.
The controller makes business method calls against the stub, just as though the stub were the actual model object iself. Almost...