Package org.apache.openejb.jee

Examples of org.apache.openejb.jee.ConnectionDefinition


        }
        return list;
    }

    private void buildConnectionDefinition(Class<? extends ManagedConnectionFactory> mcfClass, javax.resource.spi.ConnectionDefinition connectionDefinitionAnnotation, OutboundResourceAdapter outboundResourceAdapter) throws DeploymentException {
        ConnectionDefinition connectionDefinition = getConnectionDefinition(connectionDefinitionAnnotation, outboundResourceAdapter);
        if (connectionDefinition.getManagedConnectionFactoryClass() == null) {
            connectionDefinition.setManagedConnectionFactoryClass(mcfClass.getName());
        }
        if (mcfClass.getName().equals(connectionDefinition.getManagedConnectionFactoryClass())) {
            connectionDefinition.setConnectionFactoryImplClass(connectionDefinitionAnnotation.connectionFactoryImpl().getName());
            connectionDefinition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
            connectionDefinition.setConnectionImplClass(connectionDefinitionAnnotation.connectionImpl().getName());
            setConfigProperties(connectionDefinition.getConfigProperty(), mcfClass);
        }
    }
View Full Code Here


        for (ConnectionDefinition connectionDefinition : outboundResourceAdapter.getConnectionDefinition()) {
            if (connectionDefinitionAnnotation.connectionFactory().getName().equals(connectionDefinition.getConnectionFactoryInterface())) {
                return connectionDefinition;
            }
        }
        ConnectionDefinition connectionDefinition = new ConnectionDefinition();
        outboundResourceAdapter.getConnectionDefinition().add(connectionDefinition);
        connectionDefinition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName());
        return connectionDefinition;
    }
View Full Code Here

        }
        return list;
    }

    private void buildConnectionDefinition(Class mcfClass, javax.resource.spi.ConnectionDefinition connectionDefinitionAnnotation, OutboundResourceAdapter outboundResourceAdapter) throws DeploymentException {
        ConnectionDefinition connectionDefinition = getConnectionDefinition(connectionDefinitionAnnotation, outboundResourceAdapter);
        if (connectionDefinition.getManagedConnectionFactoryClass() == null) {
            connectionDefinition.setManagedConnectionFactoryClass(mcfClass.getName());
        }
        if (mcfClass.getName().equals(connectionDefinition.getManagedConnectionFactoryClass())) {
            connectionDefinition.setConnectionFactoryImplClass(connectionDefinitionAnnotation.connectionFactoryImpl().getName());
            connectionDefinition.setConnectionInterface(connectionDefinitionAnnotation.connection().getName());
            connectionDefinition.setConnectionImplClass(connectionDefinitionAnnotation.connectionImpl().getName());
            setConfigProperties(connectionDefinition.getConfigProperty(), mcfClass);
        }
    }
View Full Code Here

        for (ConnectionDefinition connectionDefinition : outboundResourceAdapter.getConnectionDefinition()) {
            if (connectionDefinitionAnnotation.connectionFactory().getName().equals(connectionDefinition.getConnectionFactoryInterface())) {
                return connectionDefinition;
            }
        }
        ConnectionDefinition connectionDefinition = new ConnectionDefinition();
        outboundResourceAdapter.getConnectionDefinition().add(connectionDefinition);
        connectionDefinition.setConnectionFactoryInterface(connectionDefinitionAnnotation.connectionFactory().getName());
        return connectionDefinition;
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.jee.ConnectionDefinition

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.