-deployment of recommender servlets
Aleksei Udatšnõi 2011-10-28, 19:28
I have implemented two recommender servlets (to be consumed by other
application) using Mahout: user-based and item-based ones. Although
these two algorithms are totally different, there are some common
parts among these servlets. For example, the db connection and output
writing logic use the same code. So I have both of these servlets in
the same Maven project and they extend from one parent class.
Now the challenge here is that I want to deploy these servlets
separately, perhaps even on different Tomcat servers. Thus I need to
generate two WARs, but Maven does not recommend to do it from one
What would you recommend: split them into two Maven projects; generate
two WARs from one project despite of Maven's best-practices or perhaps
any other solution?