Package org.apache.ode.dao.store

Examples of org.apache.ode.dao.store.DeploymentUnitDAO


      // Check for the deployment unit associated with the name
      boolean deploy=exec(new ProcessStoreImpl.Callable<Boolean>() {
        public Boolean call(ConfStoreDAOConnection conn) {
          boolean ret=false;
          DeploymentUnitDAO dudao = conn.getDeploymentUnit(bdu.getName());
          if (dudao == null)
            return true;

          try {
            String dir=bdu.getDeploymentDescriptor().getParentFile().getCanonicalPath();

            if (dudao.getDeploymentUnitDir() != null &&
                dudao.getDeploymentUnitDir().equals(dir) == false) {
              __log.debug("Updating deployunit directory from: "+dudao.getDeploymentUnitDir()+" to: "+dir);
              dudao.setDeploymentUnitDir(dir);
            }

            // Check if process has changed, and needs to be redeployed
            if (bdu.getLastModified() > dudao.getDeployDate().getTime()) {
              ret = true;
            } else {
              __log.debug("Re-compiling: "+bdu.getDeploymentDescriptor().getParentFile());

              DeploymentUnitDir du=new DeploymentUnitDir(bdu.getDeploymentDescriptor().getParentFile());
View Full Code Here

TOP

Related Classes of org.apache.ode.dao.store.DeploymentUnitDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.