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

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


        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();
        }
View Full Code Here


        boolean managed = outboundConnectionModel.isManaged();
        if (!managed) {
            throw JCAMessages.MESSAGES.nonManagedScenarioIsNotSupportedYet();
        }
       
        ResourceAdapterModel resourceAdapterModel = outboundConnectionModel.getResourceAdapter();
        if (resourceAdapterModel != null) {
            Properties raProps = resourceAdapterModel.getProperties();
            if (!raProps.isEmpty()) {
                String raName = resourceAdapterModel.getName();
                String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
                if (raid == null) {
                    throw JCAMessages.MESSAGES.uniqueKeyForResourceAdapter(raName);
                }
View Full Code Here

TOP

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

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.