How to deploy a single webapp with multiple web-modules that may be removed or added individually

Posted by Daniel Bleisteiner on Stack Overflow See other posts from Stack Overflow or by Daniel Bleisteiner
Published on 2010-05-10T07:21:30Z Indexed on 2010/05/17 11:30 UTC
Read the original article Hit count: 250

Filed under:
|
|
|
|

We currently run two separate webapps (WARs) deployed in one single EAR containing additional JARs and settings. To improve our deployment I want to split one of these webapps into different modules that may be build and packaged individually. But I've currently no clue on how to package these modules so that I'm able to add or remove them as desired - at best during runtime.

The webapp is getting more and more complex and I'd like to separate some of the functionality into modules. These modules should be packaged as single archives. As long as they contain only classes and resources loaded through code I know how to do this (simple JARs). But how about JSPs? Normally a WAR file contains JSPs or HTML files. I my case it are JSF pages utilizing JBoss Seam and RichFaces.

These modules will add classes, resources and JSF pages and other includes to the running webapplication. Is it somehow possible to deploy them as individual archives to serve the same running webapp?

We are using Maven for our build and packaging and deploy into JBoss v4.

© Stack Overflow or respective owner

Related posts about java

Related posts about deployment