• Post Reply Bookmark Topic Watch Topic
  • New Topic

30 minutes to deploy Ear file, anyone figure out faster ways?

 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it takes 30 minutes for us to deploy our application. I hate making those small changes and then waiting 30 more minutes to redeploy it.

Isn't there a way to, at least, seperate out the jar files, and just replace the individual jar. But if you unzip the ear file then the app server will complain about application.xml, which makes sense.

Mark
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
30 minutes to deploy? What server are you deploying to? How is your EAR structured (is every EJB in a separate jar)? What the hell is the application doing for 30 minutes?

Even if you did an exploded deployment (which is handled fine by most Application Servers) than are still going to run into problems. If you want to redeploy a WAR (within your EAR) then you can hot deploy it pretty fast. However, if you redeploy even a single EJB or jar at the EAR level than most Application Server have to redeploy the entire EAR (because of how the Classloaders are setup).

My suggestion is to find out what is taking so long at deployment time and start optimizing there...

30 minutes...
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your container recompiling any classes? Have you checked the server log(s) for any errors or exceptions?

Oh, just a small thought ... It may be possible to get a better idea of any problems occurring or to avoid problems if you deploy via a command line rather than the admin console. We had difficulties for several months in properly doing WebLogic deployments until recently switching to running a script from the command line.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!