title: What architecture for web app with mobile apps?
body: <p>I have a web application running under Apache Wicket (a Java EE MVC framework). For now it is a website. I am thinking about the architecture to use in order to build mobile apps as well. The mobile apps will simply be rendering information and taking in user inputs (like profile configuration for example).</p>
  
  <p>I have an N-tier architecture in mind where:</p>
  
  <ul>
  <li>The DB is the same as the one used by the current webapp.</li>
  <li>Building a Business logic layer which would be a webservice which exposes all the information I need from the DB and handles user inputs as well. This is server side.</li>
  <li>A web service that interrogates the Business logic layer and exposes the information via XML or JSON</li>
  <li>The UI layer which is basically my mobile app (iOS, Android, ...). These send queries to the business layer via the web service. The queries return data to be displayed or send UI information.</li>
  </ul>
  
  <p>I was thinking that the web service layer could then serve the website as well as the mobile applications.</p>
  
  <p>Does this architecture make sense? If yes, does my last suggestion break the MVC structure already in place?</p>