hi, Servlet and rmi are absolutely different technologies and you may compare them only from very very high point of view. yes, they both serve as part of client-server design. I mean you ask something - you get something.
Roughly speaking I would say that RMI is used in closely coupled systems on private networks with a small number of clients, while servlets are intended to communicate loosely with a large number of clients anywhere on the Internet or private network.