Examples of ExchangeInitiatedEvent


Examples of org.switchyard.runtime.event.ExchangeInitiatedEvent

        // Publish exchange initiation event
        if (ExchangePhase.IN.equals(getPhase())) {
            getContext().setProperty(ExchangeInitiatedEvent.EXCHANGE_INITIATED_TIME, Long.toString(System.nanoTime()), Scope.EXCHANGE)
                .addLabels(BehaviorLabel.TRANSIENT.label());
            domain.getEventPublisher().publish(new ExchangeInitiatedEvent(this));
        }

        _exchange.getProperty(DISPATCHER, ExchangeDispatcher.class).dispatch(this);

        if (isDone(sendPhase)) {
View Full Code Here

Examples of org.switchyard.runtime.event.ExchangeInitiatedEvent

            RuntimeLogger.ROOT_LOGGER.faultGeneratedDuringExchange(faultContent);
        } else {
            // Publish exchange initiation event
            if (ExchangePhase.IN.equals(getPhase())) {
                getContext().setProperty(ExchangeInitiatedEvent.EXCHANGE_INITIATED_TIME + ".start", Long.toString(System.nanoTime()));
                _domain.getEventPublisher().publish(new ExchangeInitiatedEvent(this));
            }
           
            _dispatch.dispatch(this);
        }
       
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.