Package org.wso2.carbon.eventing.broker.receivers

Examples of org.wso2.carbon.eventing.broker.receivers.CarbonEventingMessageReceiver.processMessage()


        if (brokerService != null) {
            dummyReceiver.setBrokerService(brokerService);
        }
        MessageContext mc = createMessageContext(payload, topic, tenantId);
        try {
            dummyReceiver.processMessage(mc);
        } catch (Exception e) {
            if (e instanceof EventBrokerException) {
                throw (EventBrokerException) e;
            }
            throw new EventBrokerException("Unable to generate event.", e);
View Full Code Here


        if (topic != null) {
            envelope.getHeader().addChild(topic);
        }
        try {
            mc.setEnvelope(envelope);
            dummyReceiver.processMessage(mc);
        } catch (Exception e) {
            if (e instanceof EventBrokerException) {
                throw (EventBrokerException)e;
            }
            throw new EventBrokerException("Unable to generate event.", e);
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.