wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes hot deployment in jboss 4.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "hot deployment in jboss 4.2" Watch "hot deployment in jboss 4.2" New topic
Author

hot deployment in jboss 4.2

abhay nori
Greenhorn

Joined: Jul 22, 2008
Posts: 2
I have a question wrt to hot deployment in Jboss 4.2.x. If my application services are used by some different applications (like messaging, web service etc..). What will happen if i do a hot deploy? Are the old calls will be completed (with any locks before replacing the code)? or the hot deployment will be incosistent (with some old code and some new)? Bear with me if my question does not make any sense.

Thanks in advance for your help.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

If you hot deploy a new application, none of the existing applications are effected.

If you hot deploy a new version of an existing application, then all current sessions for that application are invalidated. All users will have to log back in again and will lose any session-related data, unless the app is storing that data in a database and can get the info back. For example, a shopping cart kept in the http session will be lost, but a shopping cart kept in the database indexed by the customer's account number can be retrieved.

Due to this "lose existing sessions" behavior, many people recommend turning off hot deployment in production.


JBoss In Action
abhay nori
Greenhorn

Joined: Jul 22, 2008
Posts: 2
Thank you Peter for valuable response. My requirement is for the hot deployment of existing application. With your suggestion it sounds like my application will impact badly as most of the info in sessions.

Once again Thank you.
Javid Jamae
Author
Ranch Hand

Joined: May 14, 2008
Posts: 198
Abhay,

Having hot-deployment sounds like more of a solution than a requirement. What is the underlying requirement? If you need 24x7 uptime while allowing software upgrades, there are ways to accomplish this without using hot-deployment.

Javid


Author: JBoss in Action, javidjamae.com, @javidjamae on Twitter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hot deployment in jboss 4.2
 
Similar Threads
Eclipse & uncompressed wars
JBOSS Doesnt reload the Java files
WLS exploded deployment and hot deployment
How to configure JBoss for hot deployment.
JBoss custom ClassLoader and hot redeployment