Package org.servicemix.jbi.deployment

Examples of org.servicemix.jbi.deployment.Target


    }

    protected String deployServiceUnit(File location, ServiceUnit su) throws DeploymentException {
        String result = null;
        String name = su.getIdentification().getName();
        Target target = su.getTarget();
        String componentName = target.getComponentName();
        String artifact = target.getArtifactsZip();
        try {
            File targetDir = environmentContext.getServiceUnitDirectory(componentName, name);
            // unpack the artifact
            if (artifact != null) {
                File artifactFile = new File(location, artifact);
View Full Code Here


        return result;
    }

    protected void undeployServiceUnit(ServiceUnit su) throws DeploymentException {
        String name = su.getIdentification().getName();
        Target target = su.getTarget();
        String componentName = target.getComponentName();
        try {
            File targetDir = environmentContext.getServiceUnitDirectory(componentName, name);
            // unpack the artifact
            // now get the component and give it a SA
            Component component = container.getComponent(componentName);
View Full Code Here

            ServiceUnit[] sus = sa.getServiceUnits();
            if (sus != null) {
                for (int i = 0;i < sus.length;i++) {
                    ServiceUnit su = sus[i];
                    String name = su.getIdentification().getName();
                    Target target = su.getTarget();
                    String componentName = target.getComponentName();
                    try {
                        File targetDir = environmentContext.getServiceUnitDirectory(componentName, name);
                        // now get the component and give it a SA
                        Component component = container.getComponent(componentName);
                        if (component != null) {
View Full Code Here

TOP

Related Classes of org.servicemix.jbi.deployment.Target

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.