Examples of MessageProcessor


Examples of org.apache.agila.engine.MessageProcessor

        timerService = new TimerServiceImpl();
        notificationService = new NotificationServiceImpl();

        taskService.setTokenService(tokenService);

        impl = new MessageProcessor();

        impl.setTaskService(taskService);
        impl.setTimerService(timerService);
        impl.setExecutionInstanceService(eiSvc);
        impl.setTokenService(tokenService);
View Full Code Here

Examples of org.apache.agila.engine.MessageProcessor

        bpService = new BusinessProcessServiceImpl();
        timerService = new TimerServiceImpl();
        taskService = new TaskServiceImpl();

        // create a custom message processor that will allow us access to the EngineMessage
        msgProcessor = new MessageProcessor() {
            public boolean processMessage(EngineMessage msg) {
                InstanceServiceTestCase.this.engineMessage = msg;

                return false;
            }
View Full Code Here

Examples of org.apache.agila.engine.MessageProcessor

        taskService.setTokenService(tokenService);
        taskService.setInstanceService( instanceService );
        taskService.setBusinessProcessService( businessProcessService );

        messageProcessor = new MessageProcessor();

        messageProcessor.setTaskService( taskService );
        messageProcessor.setTimerService( timerService );
        messageProcessor.setExecutionInstanceService( instanceService );
        messageProcessor.setTokenService( tokenService );
View Full Code Here

Examples of org.apache.agila.engine.MessageProcessor

        taskService.setTokenService(tokenService);
        taskService.setInstanceService(eiSvc);
        taskService.setBusinessProcessService(graphManager);

        this.impl = new MessageProcessor();

        this.impl.setTaskService( taskService );
        this.impl.setTimerService( timerService );
        this.impl.setExecutionInstanceService( eiSvc );
        this.impl.setTokenService( tokenService );
View Full Code Here

Examples of org.apache.agila.engine.MessageProcessor

        InstanceService eiSvc = new InstanceServiceImpl();
        BusinessProcessServiceImpl graphManager = new BusinessProcessServiceImpl();
        TaskService taskService = new TaskServiceImpl();
        TimerServiceImpl timerService = new TimerServiceImpl();

        MessageProcessor impl = new MessageProcessor();

        impl.setTaskService(taskService);
        impl.setTimerService(timerService);
        impl.setExecutionInstanceService(eiSvc);
        impl.setTokenService(tokenService);
        impl.setBusinessProcessService(graphManager);

        QueueServiceImpl qs = new QueueServiceImpl(impl);

        timerService.setQueueService(qs);

        impl.setQueueService(qs);

        /*
         * now start the message pump for processing since we are all ready
         */

 
View Full Code Here

Examples of org.apache.agila.engine.MessageProcessor

        this.eiSvc = new InstanceServiceImpl();
        this.graphManager = new BusinessProcessServiceImpl();
        this.taskService = new TaskServiceImpl();
        this.timerService = new TimerServiceImpl();

        this.impl = new MessageProcessor();

        this.impl.setTaskService(taskService);
        this.impl.setTimerService(timerService);
        this.impl.setExecutionInstanceService(eiSvc);
        this.impl.setTokenService(tokenService);
View Full Code Here

Examples of org.apache.synapse.message.processors.MessageProcessor

        return messageStore;
    }

    public static MessageProcessor defineMessageProcessor(SynapseConfiguration config,
                                                          OMElement elem, Properties properties) {
        MessageProcessor processor  = MessageProcessorFactory.createMessageProcessor(elem);
        config.addMessageProcessor(processor.getName() , processor);
        return processor;
    }
View Full Code Here

Examples of org.apache.synapse.message.processors.MessageProcessor

            Iterator messageProcessors = FileUtils.iterateFiles(messageProcessorDir, extensions, false);
            while (messageProcessors.hasNext()) {
                File file = (File) messageProcessors.next();
                OMElement document = getOMElement(file);
                MessageProcessor messageProcessor = SynapseXMLConfigurationFactory.defineMessageProcessor(
                        synapseConfig, document, properties);
                if (messageProcessor != null) {
                    messageProcessor.setFileName(file.getName());
                    synapseConfig.getArtifactDeploymentStore().addArtifact(file.getAbsolutePath(),
                            messageProcessor.getName());
                }
            }
        }
    }
View Full Code Here

Examples of org.apache.synapse.message.processors.MessageProcessor

     * Creates a Message processor instance from given xml configuration element
     * @param elem OMElement of that contain the Message processor configuration
     * @return  created message processor instance
     */
    public static MessageProcessor createMessageProcessor(OMElement elem) {
        MessageProcessor processor = null;
        OMAttribute clssAtt = elem.getAttribute(CLASS_Q);

        if(clssAtt != null) {
            try {
                Class cls = Class.forName(clssAtt.getAttributeValue());
                processor = (MessageProcessor) cls.newInstance();
            } catch (Exception e) {
                handleException("Error while creating Message processor " + e.getMessage());
            }
        } else {
            /**We throw Exception since there is not default processor*/
            handleException("Can't create Message processor without a provider class");
        }

        OMAttribute nameAtt = elem.getAttribute(NAME_Q);
        if (nameAtt != null) {
            assert processor != null;
            processor.setName(nameAtt.getAttributeValue());
        } else {
            handleException("Can't create Message processor without a name ");
        }

        OMAttribute storeAtt = elem.getAttribute(MESSAGE_STORE_Q);

        if(storeAtt != null) {
            assert processor != null;
            processor.setMessageStoreName(storeAtt.getAttributeValue());
        } else {
            handleException("Can't create message processor with out a message processor");
        }

        OMElement descriptionElem = elem.getFirstChildWithName(DESCRIPTION_Q);
        if (descriptionElem != null) {
            assert processor != null;
            processor.setDescription(descriptionElem.getText());
        }

        assert processor != null;
        processor.setParameters(getParameters(elem));

        return processor;
    }
View Full Code Here

Examples of org.apache.synapse.message.processors.MessageProcessor

            log.debug("MessageProcessor Undeployment of the MessageProcessor named : "
                    + artifactName + " : Started");
        }

        try {
            MessageProcessor mp =
                    getSynapseConfiguration().getMessageProcessors().get(artifactName);
            if (mp != null) {
                getSynapseConfiguration().removeMessageProcessor(artifactName);
                if (log.isDebugEnabled()) {
                    log.debug("Destroying the MessageProcessor named : " + artifactName);
                }
                mp.destroy();
                if (log.isDebugEnabled()) {
                    log.debug("MessageProcessor Undeployment of the endpoint named : "
                            + artifactName + " : Completed");
                }
                log.info("MessageProcessor named '" + mp.getName() + "' has been undeployed");
            } else if (log.isDebugEnabled()) {
                log.debug("MessageProcessor " + artifactName + " has already been undeployed");
            }
        } catch (Exception e) {
            handleSynapseArtifactDeploymentError(
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.