Package org.apache.synapse.message.processors

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


        SynapseConfiguration configuration = getSynapseConfiguration();
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here


        SynapseConfiguration configuration = getSynapseConfiguration();
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        SynapseConfiguration configuration = getSynapseConfiguration();
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        SynapseConfiguration configuration = getSynapseConfiguration();
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        int size = 0;
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        SynapseConfiguration configuration = getSynapseConfiguration();
        boolean active = false;
        try {
            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageForwardingProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        SynapseConfiguration configuration = getSynapseConfiguration();
        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageForwardingProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

        try {

            assert configuration != null;
            if (configuration.getMessageProcessors().containsKey(processorName)) {
                MessageProcessor processor =
                        configuration.getMessageProcessors().get(processorName);

                if (processor instanceof ScheduledMessageForwardingProcessor) {
                    MessageForwardingProcessorView view =
                            ((ScheduledMessageForwardingProcessor) processor).getView();
View Full Code Here

     * @return implementation class name of the Message Processor
     * @throws AxisFault
     */
    public String getClassName(String name) throws AxisFault {

        MessageProcessor processorImpl = getMessageProcessorImpl(name);

        if (processorImpl != null) {
            return processorImpl.getClass().getName();
        } else {
            handleException(log, "Message Processor " + name + " does not exist !!!", null);
        }

        //This code block will never reach as handleException method will always returns a Exception
View Full Code Here

     *                   a MessageProcessor with the given xml.
     */
    public void addMessageProcessor(String xml) throws AxisFault {
        try {
            OMElement msElem = createElement(xml);
            MessageProcessor messageProcessor =
                    MessageProcessorFactory.createMessageProcessor(msElem);
            if (messageProcessor != null && messageProcessor.getName() != null) {
                SynapseConfiguration synapseConfiguration = getSynapseConfiguration();
                String fileName = ServiceBusUtils.generateFileName(messageProcessor.getName());
                messageProcessor.init(getSynapseEnvironment());
                messageProcessor.setFileName(fileName);
                synapseConfiguration.addMessageProcessor(messageProcessor.getName(),
                        messageProcessor);
                MediationPersistenceManager mp = getMediationPersistenceManager();
                mp.saveItem(messageProcessor.getName(), ServiceBusConstants.ITEM_TYPE_MESSAGE_PROCESSOR);

            } else {
                String message = "Unable to create Message Processor ";
                handleException(log, message, null);
            }
View Full Code Here

TOP

Related Classes of org.apache.synapse.message.processors.MessageProcessor

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.