• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Auto reload flag in web application definition

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does this mean? In particular, do we have to set this to 'false' when deploying a web application in production? In our development environment, this is set to true, with a reload interval of 9 seconds, but the log files do not indicate that the application is reloading in 9 seconds. For that matter, the application has not been reloading unless we changed a class file or a jar file in its classpath. I can leave it as it is, but would like to understand what it means, before moving into production, and leaving things to the wind. I'd appreciate any help with this.
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bala Krishna:
What does this mean? In particular, do we have to set this to 'false' when deploying a web application in production? In our development environment, this is set to true, with a reload interval of 9 seconds, but the log files do not indicate that the application is reloading in 9 seconds. For that matter, the application has not been reloading unless we changed a class file or a jar file in its classpath. I can leave it as it is, but would like to understand what it means, before moving into production, and leaving things to the wind. I'd appreciate any help with this.


Actually, this is covered in detail in the product documentation. What this means is what you've surmised through experimentation. If it is enabled then if you change a .jar file or .class file on the classpath then the web application will reload. The interval is the length of time the thread that checks for new files "Rests" between checking for files. Higher values check less often, but take up less CPU.
And yes, we recommend that you disable it for production.
Kyle Brown

------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic