Examples of UnknownRoleException


Examples of org.mule.jbi.messaging.UnknownRoleException

        if (me.getRole() == MessageExchange.Role.CONSUMER) {
            target = ((MessageExchangeProxy) me).getProvider();
        } else if (me.getRole() == MessageExchange.Role.PROVIDER) {
            target = ((MessageExchangeProxy) me).getConsumer();
        } else {
            throw new UnknownRoleException(me.getRole());
        }
        DeliveryChannelImpl ch = (DeliveryChannelImpl) ((JbiRegistryComponent)registry.getComponent(target)).getChannel();
    ch.enqueue(((MessageExchangeProxy) me).getTwin());
    }
View Full Code Here

Examples of org.springframework.social.alfresco.api.entities.exceptions.UnknownRoleException

         */
        public void setRole(String role)
        {
            if (!validateRole(role))
            {
                throw new UnknownRoleException(role);
            }
            this.role = role;

        }
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.