title: RMI vs. Web Services. What's best for Java2Java remoting?
body: <p>I'm new to both Web Services and RMI and I wonder which is the better way to do remoting between different web applications, when these applications are all written in Java, that is when different programming languages don't matter (which would be the advantage of WS).</p>
  
  <p>While on the one hand I would guess that there's a performance overhead when using web services (does anyone have some numbers to prove that?), on the other hand it seems to me that web services are much more loosely coupled and can be used to implement a more service-oriented architecture (SOA) (which isn't possible with RMI, right?).</p>
  
  <p>Although this is quite a general question, what's your opinion?</p>
  
  <p>Thanks</p>