title: Integrating Scala into an existing project in Java
body: <p>we have a project written in Java. It is a maven project, that has jsp pages and a lot of java code:</p>
  
  <ul>
  <li>servlets for handling user requests and dealing out responses.</li>
  <li>classes of logic used by servlets in order to process the required logic.</li>
  <li>classes of SQL generators used to connect to database and perform the specific queries required by the logic.</li>
  </ul>
  
  <p>Well, we are looking towards Scala. For example, we use mappers in order to get a collection of entities from the database and after that transform this collection, filter it and return to the servlet. That seems like a good thing to do in Java. The question is - how can I integrate that into an existing project? Can I use in my logic files written in Java some Scala classes that again use the mapper files written in Java? </p>