Actually, yes, I think they do. Let's make sure we compare apples to apples. Amazon or other sites would never deploy a new version of a bean on a working server in the middle of user requests, most likely anyway. They'd bring on a new node, or restart one, while the other nodes were all load balanced and fail over protected. In other words, in ANY deployment where you are going to require any sort of large load, you will never run it on a single server. In fact, I wouldn't even fathom running a simple public site without at least a couple of load balanced and failed over servers in place. Therefore, it really depends on the setup. If you are only running a single server, you may have grounds for what you are doing. However, I can't imagine anyone willing to upload a new build of any bean, app, etc until sometime late at night when traffic is at a bare minimum, certainly not during the day. But regardless, no doubt big sites employ much more capable means of redeploying new versions of beans, apps, etc. Even an emergency fix would be no problem in deploying to one app (shutting it down, or redeploying) while other apps contain the old version.
There are a few ways to redeploy as well. It depends on how a container does it. The best way is to redeploy new beans and only work with all new clients, while old clients work with old deployed beans/apps, until they are done (log out, time out, etc). Once no more clients are using the old version, undeploy it, discard it. That is the best way if you are using a single server or even if you are using a clustered setup where you may have situations like an emergency hot-deploy in the middle of traffic hours. So long as all the current sessions are preserved for those clients, all new clients start using the new deployment and thus there is never a need to copy any session state between deployments. Not exactly sure how JBoss handles that though... Sacha/Bill? Does JBoss (and for that matter Jetty and Tomcat) redeploy over existing beans and apps, or does it run the old and new side by side until all clients are done with the old, and then discard the old? --- Regis Melo <[EMAIL PROTECTED]> wrote: > I just think that is not a good idea to break down > all the user > sessions. Ok, if there is a new version of object > thas was in session, > the container could invalidate the session. > > Do U really think that is good to work with app that > sometimes > invalidate your session? Do U think that Amazon or > e-bay do that? > > []'s, > > Regis Melo > > Kevin Duffey wrote: > > >What would be the point of hot-deploy then? If you > >deploy a new app, how is your session to be > accurate > >if for example one of the session objects has a new > >version behind the object? That is, if you store > >Address, and you now extend Address from > >AbstractAddress, your old session state object only > >has Address in it. There would be no valid way that > I > >know of to suddenly sync up the old state with a > new > >version of Address that extends AbstractAddress, > >unless perhaps you had custom code that could take > an > >Addresss as a constructor to Address and copy it > >correctly? I don't see the reason for this though. > > > >--- Regis Melo <[EMAIL PROTECTED]> wrote: > > > > > >>Hello, > >> > >> I'm using JBoss + Tomcat, but every time that > I > >>deploy a new version > >>of WAR file, all sessions are invalidated... There > >>is any way to > >>configure JBoss/TomCat to don't invalidate my > >>sessions? > >> > >>Thanks in advance, > >> > >>Regis Melo > >> > >> > >> > >> > >> > >> > >> > >------------------------------------------------------- > > > > > >>This SF.Net email sponsored by: Parasoft > >>Error proof Web apps, automate testing & more. > >>Download & eval WebKing and get a free book. > >>www.parasoft.com/bulletproofapps1 > >>_______________________________________________ > >>JBoss-user mailing list > >>[EMAIL PROTECTED] > >> > >> > >> > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > >__________________________________ > >Do you Yahoo!? > >SBC Yahoo! DSL - Now only $29.95 per month! > >http://sbc.yahoo.com > > > > > >------------------------------------------------------- > >This SF.Net email sponsored by: Parasoft > >Error proof Web apps, automate testing & more. > >Download & eval WebKing and get a free book. > >www.parasoft.com/bulletproofapps1 > >_______________________________________________ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user