HTTP example
The Servlet sends a streamed, rather than remote, object
The servlet reads the message parameters, retrieves an object from the ‘host’ and returns a streamed object
BankAccount account = null;
String PIN = request.getParameter("pin");
String password = request.getParameter("password");
SecurityID id = new SecurityID
(password, Integer.parseInt(PIN));
account = getHost.getAccount(id);
new ObjectOutputStream(response.getOutputStream());
out.writeObject(account);