I am considering packaging my web app wars and ejb jars together as one ear file. My question is, if I want to hotswap out a single ejb jar and not have to replace all of the other wars and jars, is that possible? Or will I need to overwrite the entire ear effectively hotswapping all of my ejbs and all of my web apps? Thanks for any info.
When you redeploy an EJB that's part of an enterprise application, the whole application will get redeployed in any case. Besides, if you're using Ant (or something similar), it'll be just as easy to replace the .ear file as it would be to replace the .war or .jar file within an exploded application.
In production though - wouldn't this be an unnecessary redploy of web apps and ejbs that were not dependent on the ejb or web app I wanted to redeploy? I am just asking because I want to use an ear but my colleagues believe that this limitation in production makes it a bad way of doing things.
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop