Results 1 to 3 of 3

Thread: Configuration file changes at runtime for a tomcat webapp?

  1. #1
    Join Date
    Nov 2007
    Posts
    179

    Default 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. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Nov 2007
    Posts
    179

    Default

    thanks for your reply Marten

Tags for this Thread

Posting Permissions

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