Hot Deploy a Java EAR to Minimize or Eliminate Downtime of an Application on a Server?

By : Ichorus
Source: Stackoverflow.com
Question!

I have heard that this is what JavaRebel does but is there any other good way to deploy a new version of an EAR while allowing users to remain active on the previous version? We use JBoss for the application server...

By : Ichorus


Answers

Vladimir's suggestion around using a load balancer is a pretty sure way of achieving what you want. Keep in mind, it need not necessarily be a high-end hardware load balancer. Rather, if you front your JBoss server with a native web server (Apache or IIS) and mod_jk or mod_proxy, you can maintain one common web facade and implement the applicable loading and routing routines at EAR upgrade time.

//Nicholas

By : Nicholas


As I understand WebLogic has a feature called parallel deployment to eliminate downtime during EAR version upgrade. You can deploy the new version without stopping the existing application and once the new version deployed successfully you can switch over transparently from the old one to new one.

I am not sure if other application server supports this.

Ref: http://edocs.bea.com/wls/docs100/deployment/redeploy.html#wp1022490



I think you might want to look into Spring using OSGI framework. http://www.springframework.org/osgi

By : user26365


This video can help you solving your question :)
By: admin