c# - Sharing the business layer between applications in Scala -


i have business logic (domain services/model) want share between 2 type of projects. 1 mvc web application , terminal/console application.

in .net world create solution @ least 3 projects (each project compiled dll file).

  1. services (library)
  2. web (mvc web application)
  3. console (console application)

then reference services web , console projects. way web , console applications using same services layer , can run separated.

now want same work in scala. i'm looking best patterns , practices such work.

more over, idea move models the web application services , use models in console app? i'm using models classes both domain , mvc models.

note: don't know if it's important say, use play web application framework.

  1. create subprojects a, b, c , move business logic d.
  2. make a, b, c depend on jar artifact produced result of d. (take closer on classpath dependencies section)
  3. ????
  4. profit!

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -