Examples of BrokerConfigurationHelper


Examples of org.wso2.carbon.cep.core.internal.config.BrokerConfigurationHelper

                            CEPEventProcessor.getXMLElement(event, output.getElementMapping());
                }

                if (output.getBrokerName() != null) {
                    BrokerService brokerService = CEPServiceValueHolder.getInstance().getBrokerService();
                    BrokerConfigurationHelper brokerConfigurationHelper = new BrokerConfigurationHelper();
                    BrokerConfiguration brokerConfiguration =
                            brokerConfigurationHelper.getBrokerConfiguration(output.getBrokerName(), tenantId);
                    brokerService.publish(brokerConfiguration,
                            output.getTopic(),
                            omElementToSend);
                }
            }
View Full Code Here

Examples of org.wso2.carbon.cep.core.internal.config.BrokerConfigurationHelper

        TopicEventListener topicEventListener = new TopicEventListener(this, input);
        // subscribe to the broker if given.
        if (input.getBrokerName() != null) {
            BrokerEventListener brokerEventListener = new BrokerEventListener(topicEventListener);
            BrokerService brokerService = CEPServiceValueHolder.getInstance().getBrokerService();
            BrokerConfigurationHelper brokerConfigurationHelper = new BrokerConfigurationHelper();
            BrokerConfiguration brokerConfiguration =
                    brokerConfigurationHelper.getBrokerConfiguration(input.getBrokerName(), tenantId);
            try {
                brokerService.subscribe(brokerConfiguration, input.getTopic(),
                        brokerEventListener, axisConfiguration);
            } catch (BrokerEventProcessingException e) {
                String errorMessage = "Can not subscribe to the broker " + input.getBrokerName();
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.