I am working on a multi-level business application written in Java that needs to be packaged as an EAR file and deployed to a JBoss application server. There is a web application level, a service level, a domain level, but not a persistence level. At least on paper.
What is the best practice for deploying different layers? In our team, we are conducting a small religious war between:
- Packing each layer in its own JAR file (for example, in its own Maven module) and adding each module in an EAR file, OR
- Combine all elements into a single JAR file with each layer mapped to a package naming convention.
Are there any other features that I am missing? What are the best practices in this area? Are there any online or offline resources that I could consult about this?
source
share