Examples of DeploymentEngine


Examples of org.apache.axis2.deployment.DeploymentEngine

        try {
            URL url = resourceLoader.getResource("org/apache/tuscany/binding/axis2/engine/config/axis2.xml");

            InputStream serviceInputStream = url.openStream();
            AxisConfigBuilder axisConfigBuilder = new AxisConfigBuilder(serviceInputStream, new DeploymentEngine(), axisConfiguration);
            axisConfigBuilder.populateConfig();
            serviceInputStream.close();
            return ConfigurationContextFactory.createConfigurationContext(this);
        } catch (IOException e) {
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

                    entry.getValue().getSynapseEnvironment());
        }
    }

    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synEnv) {
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();

        SynapseArtifactDeploymentStore deploymentStore = synEnv.getSynapseConfiguration().
                getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(synEnv.
                                getServerContextInformation());
        String taskDirDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.TASKS_DIR;

        for (Startup stp : synEnv.getSynapseConfiguration().getStartups()) {
            if (stp.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        taskDirDirPath + File.separator + stp.getFileName());
            }
        }
        deploymentEngine.addDeployer(new StartupTaskDeployer(),
                taskDirDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregistryDeployer(AxisConfiguration axisConfig,
                                    SynapseEnvironment synapseEnvironment) {
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String proxyDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.TASKS_DIR;
        deploymentEngine.removeDeployer(
                proxyDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

    }

    public void createdConfigurationContext(ConfigurationContext configurationContext) {
        Integer tenantId = MultitenantUtils.getTenantId(configurationContext);
        AxisConfiguration axisConfig = configurationContext.getAxisConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();

        HumanTaskStore taskStoreForTenant =
                htServer.getHumanTaskStoreManager().createHumanTaskStoreForTenant(tenantId, axisConfig);

        deploymentEngine.addDeployer(new AxisHumanTaskDeployer(taskStoreForTenant), "humantask", "htar");
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

        if(log.isDebugEnabled()) {
            log.debug("Initializing new BPEL deployer for tenant "
                                + MultitenantUtils.getTenantId(configurationContext));
        }
        AxisConfiguration axisConfigOfCurrentTenant = configurationContext.getAxisConfiguration();
        DeploymentEngine axisDeploymentEngine =
                (DeploymentEngine)axisConfigOfCurrentTenant.getConfigurator();
        axisDeploymentEngine.addDeployer(new BPELDeployer(), BPELConstants.BPEL_REPO_DIRECTORY,
                                         BPELConstants.BPEL_PACKAGE_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {

        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String messageProcessorDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.MESSAGE_PROCESSOR_DIR;

        for (MessageProcessor processor : synCfg.getMessageProcessors().values()) {
            if (processor.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        messageProcessorDirPath + File.separator + processor.getFileName());
            }
        }
        deploymentEngine.addDeployer(new MessageProcessorDeployer(),
                messageProcessorDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String processorDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.MESSAGE_PROCESSOR_DIR;
            deploymentEngine.removeDeployer(
                    processorDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param axisConfig         AxisConfiguration to which this deployer belongs
     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void unregisterDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {
        if (axisConfig != null) {
            DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
            String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                    synapseEnvironment.getServerContextInformation());
            String sequencesDirPath = synapseConfigPath
                    + File.separator + MultiXMLConfigurationBuilder.SEQUENCES_DIR;
            deploymentEngine.removeDeployer(
                    sequencesDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
        }
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
            throws SequenceEditorException {
        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String sequenceDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.SEQUENCES_DIR;

        for (SequenceMediator seq : synCfg.getDefinedSequences().values()) {
            if (seq.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        sequenceDirPath + File.separator + seq.getFileName());
            }
        }
        deploymentEngine.addDeployer(new SequenceDeploymentInterceptor(),
                sequenceDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);
    }
View Full Code Here

Examples of org.apache.axis2.deployment.DeploymentEngine

     * @param synapseEnvironment SynapseEnvironment to which this deployer belongs
     */
    private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment) {

        SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
        DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
        SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();

        String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
                synapseEnvironment.getServerContextInformation());
        String messageStoreDirPath = synapseConfigPath
                + File.separator + MultiXMLConfigurationBuilder.MESSAGE_STORE_DIR;

        for (MessageStore messageStore : synCfg.getMessageStores().values()) {
            if (messageStore.getFileName() != null) {
                deploymentStore.addRestoredArtifact(
                        messageStoreDirPath + File.separator + messageStore.getFileName());
            }
        }

        deploymentEngine.addDeployer(new MessageStoreDeployer(),
                messageStoreDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.