May 2015
Intermediate to advanced
234 pages
4h 18m
English
The Java RMI is a Java remote method invocation technology; a client executes a method ocated on a server, the Java RMI service.
In this recipe, we will set up a Java RMI service that will expose the methods of a normal Java class. The service will be part of an existing Spring web application but will use its own port.
The server will expose the methods of the UserService interface:
Public interface UserService {
public abstract List<User> findAll();
public abstract void addUser(User user);
}The UserService interface is implemented by UserServiceImpl:
public class UserServiceImpl implements UserService { private List<User> userList = new LinkedList<User>(); public UserServiceImpl() { User user1 = new User("Merlin", ...Read now
Unlock full access