• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hotswap ejbs possible when using ear files?

 
Robert Edmonston
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Robert Edmonston
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!