Announcement Announcement Module
Collapse
No announcement yet.
Configuration file changes at runtime for a tomcat webapp? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Configuration file changes at runtime for a tomcat webapp?

    Hello,

    Say I have a tomcat/Spring web application. I am wondering whether Spring does detect runtime changes to its configuration file such as this one (assuming the file is on the classpath):

    Commenting second bean and adding first bean as below:
    Code:
    <beans>
        <bean id="randonNumberGenerator"  class="com.me.MyGenerator"/>
    
        <!--
        <bean id="randonNumberGenerator"  class="com.someoneelse.ADifferentGenerator"/>
        -->
    </beans>
    Will Spring change the implementation at runtime as expected?

    Regards,

    Julien.

    P.S. I posted a similar question about a standalone app.

  • #2
    It will not detect those changes. Tomcat might detect changes to the file, which results in a redeployment of the app. But spring doesn't do detection. Neither for a web-app nor a standalone app.

    Comment


    • #3
      thanks for your reply Marten

      Comment

      Working...
      X