title: Java standard for client/server communication
body: <p>What is the "official" Java API for client/server or P2P communication? Java RMI? Some other networking API??</p>
  
  <p>Is this <em>official networking API</em> the standard for <strong>both</strong> SE and EE?</p>
  
  <p>I'm sure the answer is very context-specific, so let's take a look at a few instances:</p>
  
  <ol>
  <li>You have 2 swing clients installed on 2 machines and connected to the same network (or the Internet), and you want either of them to send the other a primitive, such as the integer 4, or some POJO, like a "Widget" object</li>
  <li>Same as #1 above, but between a Swing client and a fully-compliant Java EE back-end (implementing managed beans, app servers, the whole nine yards)</li>
  </ol>
  
  <p>I don't have a specific application in mind, I'm just wondering what are the "norms" for client-client and client-server communication in the world of Java.</p>