I have a question about a deployment model for a Java EE web application. We are currently deploying our web application as a WAR file in Tomcat 6. All content is packaged in a WAR file, including static content such as images, static html pages, etc. But I want to deploy this static content on an HTTP server and use the application server only to receive dynamic content. How do I share these things? Has anyone done something like that and has a good deployment model for my scenario. Help will be appreciated.
Is it good to make 2 WAR files one with static content only and deploy this WAR on the HTTP server, and the rest as another WAR file and deploy it on the application server? But this approach will affect all the pages that are currently linked to by static content and require code changes, which is very cumbersome, since our project is "Huge" and the code is very large.
Any strategy and ideas are welcome.
source
share