I'm working on a layered business application written in Java that should be packaged as an EAR file and deployed to a JBoss application server. There's a web-application layer, a service layer, a domain layer but no persistence layer. At least on paper.
What is the best practice for deploying the different layers? In our team we have a little religious war going on between:
Are there other possibilities I'm missing? What are the best practices in this area? Are there any online or offline resources I could consult about this?
In my company, we bundle each layer into its own JAR. Then we include it in a WAR.
If you don't have any EJBs that need managed, there's no real advantage to using an EAR over a WAR for deployment.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With