Package org.switchyard.component.jca.config.model

Examples of org.switchyard.component.jca.config.model.InboundConnectionModel


    }
   
    private InboundHandler handleServiceBinding(JCABindingModel config, QName name) {
       
        JCABindingModel jcaconfig = (JCABindingModel)config;
        InboundConnectionModel inboundConnectionModel = jcaconfig.getInboundConnection();
        if (inboundConnectionModel == null) {
            throw JCAMessages.MESSAGES.noInboundConnectionConfigured();
        }
        ResourceAdapterModel resourceAdapterModel = inboundConnectionModel.getResourceAdapter();
        if (resourceAdapterModel == null) {
            throw JCAMessages.MESSAGES.noResourceAdapterConfigured();
        }
        String raName = resourceAdapterModel.getName();
        if (raName == null) {
            throw JCAMessages.MESSAGES.noResourceAdapterNameConfigured();
        }
        String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(raName);
        if (raid == null && raName.endsWith(".rar")) {
            // AS7 registers adapter's name with stripping .rar suffix unlike WildFly
            raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
        }
        if (raid == null) {
            throw JCAMessages.MESSAGES.uniqueKeyForResourceAdapter(raName);
        }
       
        Properties raProps = resourceAdapterModel.getProperties();
        Properties activationProps = null;
        ActivationSpecModel activationSpecModel = inboundConnectionModel.getActivationSpec();
        if (activationSpecModel != null) {
            activationProps = activationSpecModel.getProperties();
        }
        InboundInteractionModel inboundInteractionModel = jcaconfig.getInboundInteraction();
        if (inboundInteractionModel == null) {
View Full Code Here

TOP

Related Classes of org.switchyard.component.jca.config.model.InboundConnectionModel

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.