3 Replies Latest reply on Feb 18, 2003 8:56 PM by raptor

    Deployment watches

    rickardoberg

      Hey

      The way deployment watches are done seems to have changed in JBoss3.2RC1. If I deploy a directory "blah.ear" then the scanner will check timestamp changes in that directory instead of for the application.xml file. Since I can't touch a directory in Ant very easily ("touch" only works on files), does anyone have a good idea of how to use this latest redeploy semantics with Ant? Or is this just a bug that will be fixed?

      /Rickard

        • 1. Re: Deployment watches
          rickardoberg

          Nevermind! The deployer *isn't* watching the directory, it only says so. The problem was that the JBoss protocol handlers weren't picked up. Adding -Djava.protocol.handler.pkgs=org.jboss.net.protocol to JAVA_OPTS at startup fixes it.

          • 2. Re: Deployment watches
            marc.fleury

            Thanks :)

            Also feel free to give us additional requirements if you have them, you know I am a big fan of your bits :)

            marcf

            • 3. Re: Deployment watches
              raptor

              I am seeing the same behavior, minus one item. Even after adding the JAVA_OPTS, I still cannot get RC1 to redeploy applications that have changed. Checking the DeploymentScanner MBean reports that ScanEnabled is true.

              Any ideas?