Announcement Announcement Module
Collapse
No announcement yet.
Hot reload not really reloading, forced to restart Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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.

    Thanks!

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

    Comment


    • #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?

      Thanks!

      Comment


      • #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.

        Comment


        • #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

          http://www.apache.org/licenses/LICENSE-2.0

          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 -->
          <Context>

          <!-- Default set of monitored resources -->
          <WatchedResource>WEB-INF/web.xml</WatchedResource>

          <!-- 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" />
          -->

          </Context>

          Comment

          Working...
          X