title: EJB Vs WebService? Performance point of view
body: <p>Well We have situation to decide now. I thought stackoverflow is best place to discuss.</p>
  
  <p>Background:</p>
  
  <p>We have 2 JVMs Enterprise Application server and one application deployed on each of them. we need to enable the business functionality invocation from one machine to other. Let assume one is client and another is server.</p>
  
  <p>Now from the performance point view which approach is better to design server application.</p>
  
  <p>by keeping following things in mind:</p>
  
  <p>I have 2 options:</p>
  
  <ol>
  <li><p>Pure EJB application means EJB client and EJB server component</p></li>
  <li><p>WebService Plain Java approach (no webservice over EJB, coz it is simply mess)</p></li>
  </ol>
  
  <p>My Performance metrics:  Speed : which design approach will process a request faster. My business application will be deployed on 32 bit machine for sure!</p>
  
  <p>Also note that there is 2 JVMs, one is 32 bit and 64 Bit (avoiding this situation is unavoidable right now)</p>
  
  <p>Please provide your feedback</p>
  
  <p>Regards</p>
  
  <p>Chetan</p>