Results 1 to 4 of 4

Thread: Deploy class without restarting application

  1. #1
    Join Date
    Dec 2004
    Posts
    9

    Default Deploy class without restarting application

    In a production environment, (not debugging mode with hotswap) does anyone know of a application server or any kind of technology that enables you to update a web application without restarting it?

    I've looked for a while but can't seem to find anything that will let you. I'm looking for this feature basically because if I need to make a small change to the application in the middle of the day, I don't want anyone to lose their sessions.

    Any suggestions are appreciated.
    Thanks

  2. #2
    Join Date
    Nov 2004
    Posts
    16

    Default

    Hummm, fun. :-)

    I've seen something very similar done with weblogic (version 6.1 in this instance) when deployed in a cluster. Bring down one node, roll out the app, restart it. Then bring down the other one and do the same. Theoretically with session replication turned on, the users' sessions get migrated to the other app server and then back again so there's no disruption.

    To me it seems like there are a few issues that would keep this from working, but my friend does it all the time and I've seen it work. You have to be careful of course that your session objects and anything else that's clustered is still API-compatibiliity (and sessions probably serialize-compatible as well).

    Weblogic 9 is supposedly going to include first class support for this. I believe it tags the sessions with a version. Then when you deploy a new version in place, users with old sessions keep going to the old version of the application until they are finished, and new incoming users get the new version.

  3. #3
    Join Date
    Nov 2004
    Location
    IL, USA
    Posts
    61

    Default

    Tomcat works for me. My ant script deploys *.jsp and *.class files to application's folder under webapps. But if I deploy *.war file I need to restart the server.

  4. #4
    Join Date
    Nov 2004
    Location
    IL, USA
    Posts
    61

    Default

    sorry, did not notice your requirement to hold the session...

Similar Threads

  1. Order of Bean definitions matters?
    By cfuser in forum Container
    Replies: 2
    Last Post: Oct 21st, 2005, 10:29 AM
  2. EHCaching Hibernate
    By dencamel in forum Data
    Replies: 3
    Last Post: Sep 6th, 2005, 09:03 PM
  3. Replies: 3
    Last Post: Sep 4th, 2005, 11:11 PM
  4. Stack Overflow
    By rayho222 in forum Container
    Replies: 6
    Last Post: May 17th, 2005, 03:42 AM
  5. Questioning the core component
    By Martin Kersten in forum Swing
    Replies: 6
    Last Post: Feb 21st, 2005, 03:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •