Announcement Announcement Module
No announcement yet.
Hot reload not really reloading, forced to restart Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hot reload not really reloading, forced to restart

    I have heard from some Java folks, the argument that JEE and Spring now I very productive because you rarely have to restart your server anymore. I haven't seen the light of that.

    I am using Tomcat 6 and for every change, even in a jsp I have to restart. If I change a css file, it is enough if I republish.

    Is this just a myth or do I need to configure something? Ideally this would work everywhere, like it does in Grails nowadays.


  • #2
    have you modified any of the default tomcat settings?


    • #3
      Not sure if I have, what setting are you thinking about? We have a create-app script that have some default configuration files set up, so it might/should already be configured.

      Any link to some doc?



      • #4
        check this referance.

        In the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps.

        Property Name : reloadable

        Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.


        • #5
          Nope, this is what I have:

          <?xml version='1.0' encoding='utf-8'?>
          Licensed to the Apache Software Foundation (ASF) under one or more
          contributor license agreements. See the NOTICE file distributed with
          this work for additional information regarding copyright ownership.
          The ASF licenses this file to You under the Apache License, Version 2.0
          (the "License"); you may not use this file except in compliance with
          the License. You may obtain a copy of the License at

          Unless required by applicable law or agreed to in writing, software
          distributed under the License is distributed on an "AS IS" BASIS,
          WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
          See the License for the specific language governing permissions and
          limitations under the License.
          <!-- The contents of this file will be loaded for each web application -->

          <!-- Default set of monitored resources -->

          <!-- Uncomment this to disable session persistence across Tomcat restarts -->
          <Manager pathname="" />

          <!-- Uncomment this to enable Comet connection tacking (provides events
          on session expiration as well as webapp lifecycle) -->
          <Valve className="org.apache.catalina.valves.CometConnect ionManagerValve" />