title: Is spring application context reloading via ConfigurableApplicationContext refresh() considered bad-practice
body: <p>We have a Spring application that is hosted on a <strong>shared tomcat instance</strong>.</p>
  
  <p>Sometimes we have to reload the spring application context but don't want to restart the Tomcat server, because other application's are hosted there as well.</p>
  
  <p>Is refreshing springs application context via</p>
  
  <pre><code>  ((ConfigurableApplicationContext)applicationContext).refresh();
  </code></pre>
  
  <p>considered <strong>bad practice</strong>?</p>
  
  <p>What alternatives do I have?</p>