• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is hot deployment possible without undeploying the existing application?

 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The reference I am giving is JBoss specific but this question can be generic.

If I want to update single class file, and if I have exploded war directory, I can just replace it at runtime and then update the timestamp of web.xml. URLDeploymentScanner will sense it and will redeploy that particular application so I can see the new changes affected. But the downside is that all the connected users will have to re-login as old sessions would be lost.

Now the question is can this be achieved without redeploying the web application? ...by adding the class file at higher level (say server level) which has highest precedence for class loader and then it will refresh the class copy in JVM and for all new request, it will use this new copy?

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Now the question is can this be achieved without redeploying the web application? ...by adding the class file at higher level (say server level) which has highest precedence for class loader and then it will refresh the class copy in JVM and for all new request, it will use this new copy?



A class once loaded in a web application cannot be reloaded without redeploying the application. However there are tools like JavaRebel/ which can be used to overcome this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic