Package org.apache.servicemix.jbi.framework

Examples of org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle


      ServiceAssemblyEnvironment env = new ServiceAssemblyEnvironment();
      env.setRootDir(rootDir);
      env.setInstallDir(new File(rootDir, "install"));
      env.setSusDir(new File(rootDir, "sus"));
      env.setStateFile(new File(rootDir, "state.xml"));
      ServiceAssemblyLifeCycle salc = container.getRegistry().registerServiceAssembly(assembly.getDescriptor().getServiceAssembly(), env);
      if (env.getStateFile().isFile()) {
        salc.restore();
      } else {
        salc.start();
      }
    }
View Full Code Here


        salc.start();
      }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
      ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
      salc.shutDown(false);
      container.getRegistry().unregisterServiceAssembly(assembly.getName());
    }
View Full Code Here

      ServiceAssemblyEnvironment env = new ServiceAssemblyEnvironment();
      env.setRootDir(rootDir);
      env.setInstallDir(new File(rootDir, "install"));
      env.setSusDir(new File(rootDir, "sus"));
      env.setStateFile(new File(rootDir, "state.xml"));
      ServiceAssemblyLifeCycle salc = container.getRegistry().registerServiceAssembly(assembly.getDescriptor().getServiceAssembly(), env);
      if (env.getStateFile().isFile()) {
        salc.restore();
      } else {
        salc.start();
      }
    }
View Full Code Here

        salc.start();
      }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
      ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
      salc.shutDown(false);
      container.getRegistry().unregisterServiceAssembly(assembly.getName());
    }
View Full Code Here

        ServiceAssemblyEnvironment env = new ServiceAssemblyEnvironment();
        env.setRootDir(rootDir);
        env.setInstallDir(new File(rootDir, "install"));
        env.setSusDir(new File(rootDir, "sus"));
        env.setStateFile(new File(rootDir, "state.xml"));
        ServiceAssemblyLifeCycle salc = container.getRegistry().registerServiceAssembly(assembly.getDescriptor().getServiceAssembly(), env);
        if (env.getStateFile().isFile()) {
            salc.restore();
        } else {
            salc.start();
        }
    }
View Full Code Here

            salc.start();
        }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
        ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
        salc.shutDown(false);

        assembly.undeploySus();

        container.getRegistry().unregisterServiceAssembly(assembly.getName());
View Full Code Here

        ServiceAssemblyEnvironment env = new ServiceAssemblyEnvironment();
        env.setRootDir(rootDir);
        env.setInstallDir(new File(rootDir, "install"));
        env.setSusDir(new File(rootDir, "sus"));
        env.setStateFile(new File(rootDir, "state.xml"));
        ServiceAssemblyLifeCycle salc = container.getRegistry().registerServiceAssembly(assembly.getDescriptor().getServiceAssembly(), env);
        if (env.getStateFile().isFile()) {
            salc.restore();
        } else {
            salc.start();
        }
    }
View Full Code Here

            salc.start();
        }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
        ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
        salc.shutDown(false);
        assembly.undeploySus();
        container.getRegistry().unregisterServiceAssembly(assembly.getName());
    }
View Full Code Here

        ServiceAssemblyEnvironment env = new ServiceAssemblyEnvironment();
        env.setRootDir(rootDir);
        env.setInstallDir(new File(rootDir, "install"));
        env.setSusDir(new File(rootDir, "sus"));
        env.setStateFile(new File(rootDir, "state.xml"));
        ServiceAssemblyLifeCycle salc = container.getRegistry().registerServiceAssembly(assembly.getDescriptor().getServiceAssembly(), env);
        if (env.getStateFile().isFile()) {
            salc.restore();
        } else {
            salc.start();
        }
    }
View Full Code Here

            salc.start();
        }
    }
   
    public void unregister(ServiceAssembly assembly) throws Exception {
        ServiceAssemblyLifeCycle salc = container.getRegistry().getServiceAssembly(assembly.getName());
        salc.shutDown(false);

        assembly.undeploySus();

        container.getRegistry().unregisterServiceAssembly(assembly.getName());
View Full Code Here

TOP

Related Classes of org.apache.servicemix.jbi.framework.ServiceAssemblyLifeCycle

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.