title: Architecture choice: ESB and EJB
body: <p>I am building a new Java EE application (thin client), and here is the application layers:</p>
  
  <ul>
  <li>The application presentation will be with JSF2 / Spring webflow and RichFaces 4</li>
  <li>The businees layer will be with EJB 3</li>
  <li>The Persistance layer will be with JPA2 - Hibernate implementation</li>
  </ul>
  
  <p>The application will run on Websphere Appliccation server.</p>
  
  <p>The company owns Websephre Message Broker as an ESB. </p>
  
  <p>I have got two choices, and i am trying to find out the best depending on the scalability, maintenance, performance, Best practices and entreprise architecture design, for each of them:</p>
  
  <ol>
  <li>Deploy the business EJB3 Services on the ESB and deploy the presentation layer on a dedicated server: The presentation Layer will call the business services through the ESB</li>
  <li>Deploy the EJB services on a dedicated WAS and deploy the presentation layer on a dedicated server: The presentation Layer will call directely the EJB services without using the ESB</li>
  </ol>